<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Perl Data Processing in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-data-processing/m-p/4641242#M676532</link>
    <description>Hi (again) Hakki:&lt;BR /&gt;&lt;BR /&gt;The link to Text::CSV_XS that Merijn posted will also show you the documentation.  You can also use:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://search.cpan.org/dist/Text-CSV_XS/CSV_XS.pm" target="_blank"&gt;http://search.cpan.org/dist/Text-CSV_XS/CSV_XS.pm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;By using his module you avoid beginning to slide down a slippery slope as first your comma-delimited data begins to contain quoted fields with embedded commas to separate subfields :-)  Handling cases like that would cause you to re-invent what already works!&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Thu, 03 Jun 2010 11:46:01 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2010-06-03T11:46:01Z</dc:date>
    <item>
      <title>Perl Data Processing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-data-processing/m-p/4641236#M676526</link>
      <description>I want to have a script and read a data file and collects some fields and adds some values . Data file has a header row on top, so I need to get rid of this non-numeric part of file during read - write processing. Which method do you recommend to achieve this ?&lt;BR /&gt;&lt;BR /&gt;my data file looks like; (delimited with ",")&lt;BR /&gt;Date,Time,Name,&lt;BR /&gt;05-27-2010,00:30,Isbl</description>
      <pubDate>Wed, 02 Jun 2010 10:28:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-data-processing/m-p/4641236#M676526</guid>
      <dc:creator>Hakki Aydin Ucar</dc:creator>
      <dc:date>2010-06-02T10:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Data Processing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-data-processing/m-p/4641237#M676527</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Other than skipping the header and potentially any lines that don't begin with a number in the first field, your request is sparse.&lt;BR /&gt;&lt;BR /&gt;That said, you could do:&lt;BR /&gt;&lt;BR /&gt;# perl -ne 'print if /^\s*\d/' file&lt;BR /&gt;&lt;BR /&gt;...or:&lt;BR /&gt;&lt;BR /&gt;# perl -ne 'next unless /^\s*\d/;print' file&lt;BR /&gt;&lt;BR /&gt;...or:&lt;BR /&gt;&lt;BR /&gt;# perl -e 'while (&amp;lt;&amp;gt;) {next unless /^\s*\d/;print}'&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 02 Jun 2010 10:43:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-data-processing/m-p/4641237#M676527</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-06-02T10:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Data Processing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-data-processing/m-p/4641238#M676528</link>
      <description>Hello James,&lt;BR /&gt;This is good, do I have to call it out of my script ? OR can I embed to my code ? How can I embet this code clause ?</description>
      <pubDate>Wed, 02 Jun 2010 12:56:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-data-processing/m-p/4641238#M676528</guid>
      <dc:creator>Hakki Aydin Ucar</dc:creator>
      <dc:date>2010-06-02T12:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Data Processing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-data-processing/m-p/4641239#M676529</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;This is good, do I have to call it out of my script ? OR can I embed to my code ? How can I embet this code clause ?&lt;BR /&gt;&lt;BR /&gt;In a shell program you can simply in-line the code like:&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;echo "processing ${FILE}"&lt;BR /&gt;perl -ne 'print if /^\s*\d/' ${FILE}&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;If you want more than a commandline script we can create a "full" Perl script that looks just like any command or shell script that you would otherwise call from a shell.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 02 Jun 2010 13:11:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-data-processing/m-p/4641239#M676529</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-06-02T13:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Data Processing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-data-processing/m-p/4641240#M676530</link>
      <description>If your data is delimited by comma's, and has a header, I expect it might be CSV data :)&lt;BR /&gt;&lt;BR /&gt;You ought to take a look at Text::CSV (or Text::CSV_XS for faster processing);&lt;BR /&gt;&lt;BR /&gt;$ cpan Text::CSV_XS&lt;BR /&gt;&lt;BR /&gt;$ perldoc Text::CSV_XS&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Wed, 02 Jun 2010 15:26:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-data-processing/m-p/4641240#M676530</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2010-06-02T15:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Data Processing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-data-processing/m-p/4641241#M676531</link>
      <description>&amp;gt;Merijin: &lt;BR /&gt;You ought to take a look at Text::CSV (or Text::CSV_XS for faster processing);&lt;BR /&gt;&lt;BR /&gt;Hi , is this the right doc. you recommended?&lt;BR /&gt;&lt;A href="http://search.cpan.org/dist/Text-CSV_XS/" target="_blank"&gt;http://search.cpan.org/dist/Text-CSV_XS/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Hakki</description>
      <pubDate>Thu, 03 Jun 2010 06:41:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-data-processing/m-p/4641241#M676531</guid>
      <dc:creator>Hakki Aydin Ucar</dc:creator>
      <dc:date>2010-06-03T06:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Data Processing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-data-processing/m-p/4641242#M676532</link>
      <description>Hi (again) Hakki:&lt;BR /&gt;&lt;BR /&gt;The link to Text::CSV_XS that Merijn posted will also show you the documentation.  You can also use:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://search.cpan.org/dist/Text-CSV_XS/CSV_XS.pm" target="_blank"&gt;http://search.cpan.org/dist/Text-CSV_XS/CSV_XS.pm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;By using his module you avoid beginning to slide down a slippery slope as first your comma-delimited data begins to contain quoted fields with embedded commas to separate subfields :-)  Handling cases like that would cause you to re-invent what already works!&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 03 Jun 2010 11:46:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-data-processing/m-p/4641242#M676532</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-06-03T11:46:01Z</dc:date>
    </item>
  </channel>
</rss>

