<?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 Help needed: reading file into array and pulling certain fields? in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/perl-help-needed-reading-file-into-array-and-pulling-certain/m-p/3663231#M102591</link>
    <description>&lt;BR /&gt;Kristopher,&lt;BR /&gt;&lt;BR /&gt;Welcome to the ITRC forums. Be sure to glance over the 'rules' a little: &lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#overview" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#overview&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;First, may I applaud you for tackling a new problem with a new language. Be sure to read up on the many generic web resources on perl. (google is your friend)&lt;BR /&gt;&lt;BR /&gt;Next, be sure to read Merijn's reply 5 times over. He (procura) is 'the man' in this space.&lt;BR /&gt;&lt;BR /&gt;Finally, my own modest contribution.&lt;BR /&gt;It is still using a simplistic 'split /,/'... boo hiss... but it may help reduce the learning curve a little.&lt;BR /&gt;My solution expects a 'header' line. And is willing to deal with column numners as well as names.&lt;BR /&gt;It currently reads the whole file into arrays, but I find that often I don't need the data in arrays, just process the lines as they come by such as the other solutions imply. Code, Data, and sample usage below.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;------ csv.pl ----------&lt;BR /&gt;&lt;BR /&gt;use strict 'vars';&lt;BR /&gt;my ($datafile, $tmp, $i, $rows, $columns, $x, $y);&lt;BR /&gt;my (@col, @dataline, @cell, %col);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$datafile = shift @ARGV; # pick up data file name from command line&lt;BR /&gt;$datafile = "Inventory.csv" unless $datafile; # Provide default&lt;BR /&gt;$x = shift @ARGV;&lt;BR /&gt;$y = shift @ARGV;&lt;BR /&gt;&lt;BR /&gt;open (DATAFILE, "&amp;lt;$datafile") or die "Failed to open $datafile for input";&lt;BR /&gt;#&lt;BR /&gt;# Read column-header line&lt;BR /&gt;# create array of column-names to numbers and numbers to names&lt;BR /&gt;#&lt;BR /&gt;$_ = &lt;DATAFILE&gt;;&lt;BR /&gt;chomp;&lt;BR /&gt;foreach $tmp (split /,/) {&lt;BR /&gt;        @col[$columns] = $tmp;&lt;BR /&gt;        $col{$tmp} = $columns++;&lt;BR /&gt;        }&lt;BR /&gt;#&lt;BR /&gt;while (&lt;DATAFILE&gt;) {&lt;BR /&gt;        @dataline[$rows] = $_;&lt;BR /&gt;        $i = 0;&lt;BR /&gt;        foreach $tmp (split /,/) { $cell[$rows][$i++] = $tmp };&lt;BR /&gt;        $rows++;&lt;BR /&gt;}&lt;BR /&gt;print "There were $columns columns read with $rows rows of datalines\n";&lt;BR /&gt;print "Columns are: ", join(", ",@col), "\n";&lt;BR /&gt;if (defined $y) {&lt;BR /&gt;        if ($y =~ /\d+/) {&lt;BR /&gt;                print "cell $x,$y = $cell[$x][$y ]\n";&lt;BR /&gt;        }else {&lt;BR /&gt;                print "cell $x,$y = $cell[$x][$col{$y}]\n";&lt;BR /&gt;        }&lt;BR /&gt;} else {&lt;BR /&gt;        print "no specific cell data requested\n";&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------     C:\Temp&amp;gt;type tmp.dat  -----------&lt;BR /&gt;a,b,c,d&lt;BR /&gt;aap,noot,mies,teun&lt;BR /&gt;12,34,56,78&lt;BR /&gt;test,,more test,done&lt;BR /&gt;&lt;BR /&gt;------------- usage examples -------------&lt;BR /&gt;&lt;BR /&gt;C:\Temp&amp;gt;perl csv.pl tmp.dat&lt;BR /&gt;There were 4 columns read with 3 rows of datalines&lt;BR /&gt;Columns are: a, b, c, d&lt;BR /&gt;no specific cell data requested&lt;BR /&gt;&lt;BR /&gt;C:\Temp&amp;gt;perl csv.pl tmp.dat 0 0&lt;BR /&gt;There were 4 columns read with 3 rows of datalines&lt;BR /&gt;Columns are: a, b, c, d&lt;BR /&gt;cell 0,0 = aap&lt;BR /&gt;&lt;BR /&gt;C:\Temp&amp;gt;perl csv.pl tmp.dat 0 d&lt;BR /&gt;There were 4 columns read with 3 rows of datalines&lt;BR /&gt;Columns are: a, b, c, d&lt;BR /&gt;cell 0,d = teun&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;C:\Temp&amp;gt;perl csv.pl tmp.dat 2 2&lt;BR /&gt;There were 4 columns read with 3 rows of datalines&lt;BR /&gt;Columns are: a, b, c, d&lt;BR /&gt;cell 2,2 = more test&lt;BR /&gt;&lt;/DATAFILE&gt;&lt;/DATAFILE&gt;</description>
    <pubDate>Thu, 03 Nov 2005 11:42:59 GMT</pubDate>
    <dc:creator>Hein van den Heuvel</dc:creator>
    <dc:date>2005-11-03T11:42:59Z</dc:date>
    <item>
      <title>Perl Help needed: reading file into array and pulling certain fields?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-help-needed-reading-file-into-array-and-pulling-certain/m-p/3663222#M102582</link>
      <description>I'm a beginner - Day 1. &lt;BR /&gt;&lt;BR /&gt;I'm reading a .csv file into an array (not sure if this is correct approach). Then I'm trying to pull certain columns of data from that. &lt;BR /&gt;&lt;BR /&gt;Here's the script I've been working on: &lt;BR /&gt;&lt;BR /&gt;open (DATAFILE, "Inventory.csv");&lt;BR /&gt;@PND_inv = &lt;DATAFILE&gt;;&lt;BR /&gt;$numitems = @PND_inv;&lt;BR /&gt;print "There are $numcmd commands.", "Here is your data: @PND_inv[0]\n";&lt;BR /&gt;&lt;BR /&gt;What I realized was that items are on a single line and not columnized as I had thought. So I'm getting the entire first line and not the entire first column. &lt;BR /&gt;&lt;BR /&gt;I know how to do this with cat and awk, but I need to this single script to work on both NT and UNIX platforms. &lt;BR /&gt;% cat filename.csv | awk -F , '{print $4, $5}' &amp;gt; /tmp/newfile.out &lt;BR /&gt;&lt;BR /&gt;Where am I going wrong?&lt;/DATAFILE&gt;</description>
      <pubDate>Wed, 02 Nov 2005 14:31:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-help-needed-reading-file-into-array-and-pulling-certain/m-p/3663222#M102582</guid>
      <dc:creator>Kristopher March_1</dc:creator>
      <dc:date>2005-11-02T14:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Help needed: reading file into array and pulling certain fields?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-help-needed-reading-file-into-array-and-pulling-certain/m-p/3663223#M102583</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Just as you would do in 'awk' (or with 'IFS' in the shell) so must you do in perl -- setup your field separator.&lt;BR /&gt;&lt;BR /&gt;You can do this with the perl switch '-F' in conjuction with '-a' to autosplit.  For instance:&lt;BR /&gt;&lt;BR /&gt;# echo "a,b,c,d" |perl -lanF"," -e 'print $F[2]' - &lt;BR /&gt;&lt;BR /&gt;...would print "c" since it is the second (zero-relative) field that is delimited by ",".&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 02 Nov 2005 14:44:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-help-needed-reading-file-into-array-and-pulling-certain/m-p/3663223#M102583</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2005-11-02T14:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Help needed: reading file into array and pulling certain fields?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-help-needed-reading-file-into-array-and-pulling-certain/m-p/3663224#M102584</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;I should hasten to add that you can 'split()' fields into items in an array:&lt;BR /&gt;&lt;BR /&gt;# perl -wle '@a=split(/,/,$ARGV[0]);print $a[2]' a,b,c,d&lt;BR /&gt;&lt;BR /&gt;...also returns "c"...&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 02 Nov 2005 14:52:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-help-needed-reading-file-into-array-and-pulling-certain/m-p/3663224#M102584</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2005-11-02T14:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Help needed: reading file into array and pulling certain fields?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-help-needed-reading-file-into-array-and-pulling-certain/m-p/3663225#M102585</link>
      <description>Thanks for the quick response. Although the one liner looks simple I'm still having trouble understanding exactly what's going on. &lt;BR /&gt;&lt;BR /&gt;At what point are you reading the file in?</description>
      <pubDate>Wed, 02 Nov 2005 15:01:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-help-needed-reading-file-into-array-and-pulling-certain/m-p/3663225#M102585</guid>
      <dc:creator>Kristopher March_1</dc:creator>
      <dc:date>2005-11-02T15:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Help needed: reading file into array and pulling certain fields?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-help-needed-reading-file-into-array-and-pulling-certain/m-p/3663226#M102586</link>
      <description>It is always a good idea to learn a new language! But likely you won't be an expert after day 1.&lt;BR /&gt;&lt;BR /&gt;But here is the quick alternative:&lt;BR /&gt;&lt;BR /&gt;Use "GNU utilities for Windows" and run your shell script on win as on unix.</description>
      <pubDate>Wed, 02 Nov 2005 15:08:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-help-needed-reading-file-into-array-and-pulling-certain/m-p/3663226#M102586</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2005-11-02T15:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Help needed: reading file into array and pulling certain fields?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-help-needed-reading-file-into-array-and-pulling-certain/m-p/3663227#M102587</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;In the example:&lt;BR /&gt;&lt;BR /&gt;# perl -lanF"," -e 'print $F[2]' -&lt;BR /&gt;&lt;BR /&gt;I was using the '-n' switch to read file(s) sepecified on the commandline.  The '-' argument equates to STDIN.&lt;BR /&gt;&lt;BR /&gt;Consider:&lt;BR /&gt;&lt;BR /&gt;# cat /tmp/mydata&lt;BR /&gt;one,two,three&lt;BR /&gt;red fish,blue fish,one fish,two fish&lt;BR /&gt;&lt;BR /&gt;# perl -lanF, -e 'print $F[2]' /tmp/mydata&lt;BR /&gt;&lt;BR /&gt;...yields:&lt;BR /&gt;&lt;BR /&gt;three&lt;BR /&gt;one fish&lt;BR /&gt;&lt;BR /&gt;...since I asked to print the second field ($F[2] in the automatically split (-a) array built from reading /tmp/mydata.  The '-n' creates a read loop just like you would with :&lt;BR /&gt;&lt;BR /&gt;while (&amp;lt;&amp;gt;)&lt;BR /&gt;&lt;BR /&gt;I used the '-l' to autogenerate linefeeds when printing.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF... &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Nov 2005 15:10:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-help-needed-reading-file-into-array-and-pulling-certain/m-p/3663227#M102587</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2005-11-02T15:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Help needed: reading file into array and pulling certain fields?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-help-needed-reading-file-into-array-and-pulling-certain/m-p/3663228#M102588</link>
      <description>Splitting on ',' for csv files is both easy and wrong. Not for simple csv, but consider these two csv lines:&lt;BR /&gt;&lt;BR /&gt;1,,Blah,2,"Foo, Bar"&lt;BR /&gt;&lt;BR /&gt;and&lt;BR /&gt;&lt;BR /&gt;1;;Blah;2;Foo, Bar&lt;BR /&gt;&lt;BR /&gt;the first is correct CSV, and the seconds is Micro$oft's way of interpreting the C in CSV (C translates to semicolon in M$' dictionaries, instead of Comma)&lt;BR /&gt;&lt;BR /&gt;These problems are all solved for perl in the Text::CSV_XS module (or Text::CSV for the slower pure-perl version)&lt;BR /&gt;&lt;BR /&gt;&lt;PLUG&gt;Now I have written a module to hide all the implementation specifics for spreadsheets (and CSV) and make a uniformal interface:&lt;BR /&gt;&lt;BR /&gt;--8&amp;lt;---&lt;BR /&gt;use Spreadsheet::Read;&lt;BR /&gt;my $ref = ReadData ("Inventory.csv");&lt;BR /&gt;&lt;BR /&gt;print "This CSV file contains ", $ref-&amp;gt;[1]{maxcol}, " columns (fields) and ", $ref-&amp;gt;[1]{maxrow}, " rows (lines).\n";&lt;BR /&gt;print "The third field on line 6 is: ", $ref-&amp;gt;[1]{cell}[3][6], "\n";&lt;BR /&gt;--&amp;gt;8---&lt;BR /&gt;&lt;BR /&gt;The module comes with a command line utility, so you can see the content of Excel (xls), OpenOffice (sxc, ods), and CSV (csv) pretty easy:&lt;BR /&gt;&lt;BR /&gt;# xlscat Inventory.csv&lt;BR /&gt;&lt;BR /&gt;# xlscat -?&lt;BR /&gt;&lt;BR /&gt;will show the available options.&lt;BR /&gt;If you also have Perl/Tk installed, a new util 'ss2tk' will be included in the next release, and it will give you a multi-tabbed perl/tk read-only interface to these formats with search capabilities&lt;/PLUG&gt;&lt;BR /&gt;&lt;BR /&gt;And yes, Spreadsheet::Read and Text::CSV_XS work on both Linux and NT (and HP-UX, and AIX, and Solaris, and Cygwin, and .....)&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Thu, 03 Nov 2005 02:32:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-help-needed-reading-file-into-array-and-pulling-certain/m-p/3663228#M102588</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2005-11-03T02:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Help needed: reading file into array and pulling certain fields?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-help-needed-reading-file-into-array-and-pulling-certain/m-p/3663229#M102589</link>
      <description>You can use cut utility to get better performance :) Any way, if you are going with perl then,&lt;BR /&gt;&lt;BR /&gt;echo "a,b,c,d,e,f" | perl -aF, -ne 'print "@F[3,4]\n";'&lt;BR /&gt;&lt;BR /&gt;If you want to update in same file then,&lt;BR /&gt;&lt;BR /&gt;perl -aF, -ni -e 'print "print "@F[3,4]\n";' &lt;FILENAME&gt;&lt;BR /&gt;&lt;BR /&gt;-Muthu&lt;/FILENAME&gt;</description>
      <pubDate>Thu, 03 Nov 2005 05:53:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-help-needed-reading-file-into-array-and-pulling-certain/m-p/3663229#M102589</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-11-03T05:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Help needed: reading file into array and pulling certain fields?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-help-needed-reading-file-into-array-and-pulling-certain/m-p/3663230#M102590</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;Merijn: While I was aware of the inherent problems with CSV files, your pointer was (aw always) very germane.  Thanks.&lt;BR /&gt;&lt;BR /&gt;Muthu: I fail to see how 'cut' could provide better performance in repetive processing like this.  Given that 'cut' isn't a shell built-in you would have to spawn a new process (for 'cut') for every line read.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 03 Nov 2005 10:26:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-help-needed-reading-file-into-array-and-pulling-certain/m-p/3663230#M102590</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2005-11-03T10:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Help needed: reading file into array and pulling certain fields?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-help-needed-reading-file-into-array-and-pulling-certain/m-p/3663231#M102591</link>
      <description>&lt;BR /&gt;Kristopher,&lt;BR /&gt;&lt;BR /&gt;Welcome to the ITRC forums. Be sure to glance over the 'rules' a little: &lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#overview" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#overview&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;First, may I applaud you for tackling a new problem with a new language. Be sure to read up on the many generic web resources on perl. (google is your friend)&lt;BR /&gt;&lt;BR /&gt;Next, be sure to read Merijn's reply 5 times over. He (procura) is 'the man' in this space.&lt;BR /&gt;&lt;BR /&gt;Finally, my own modest contribution.&lt;BR /&gt;It is still using a simplistic 'split /,/'... boo hiss... but it may help reduce the learning curve a little.&lt;BR /&gt;My solution expects a 'header' line. And is willing to deal with column numners as well as names.&lt;BR /&gt;It currently reads the whole file into arrays, but I find that often I don't need the data in arrays, just process the lines as they come by such as the other solutions imply. Code, Data, and sample usage below.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;------ csv.pl ----------&lt;BR /&gt;&lt;BR /&gt;use strict 'vars';&lt;BR /&gt;my ($datafile, $tmp, $i, $rows, $columns, $x, $y);&lt;BR /&gt;my (@col, @dataline, @cell, %col);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$datafile = shift @ARGV; # pick up data file name from command line&lt;BR /&gt;$datafile = "Inventory.csv" unless $datafile; # Provide default&lt;BR /&gt;$x = shift @ARGV;&lt;BR /&gt;$y = shift @ARGV;&lt;BR /&gt;&lt;BR /&gt;open (DATAFILE, "&amp;lt;$datafile") or die "Failed to open $datafile for input";&lt;BR /&gt;#&lt;BR /&gt;# Read column-header line&lt;BR /&gt;# create array of column-names to numbers and numbers to names&lt;BR /&gt;#&lt;BR /&gt;$_ = &lt;DATAFILE&gt;;&lt;BR /&gt;chomp;&lt;BR /&gt;foreach $tmp (split /,/) {&lt;BR /&gt;        @col[$columns] = $tmp;&lt;BR /&gt;        $col{$tmp} = $columns++;&lt;BR /&gt;        }&lt;BR /&gt;#&lt;BR /&gt;while (&lt;DATAFILE&gt;) {&lt;BR /&gt;        @dataline[$rows] = $_;&lt;BR /&gt;        $i = 0;&lt;BR /&gt;        foreach $tmp (split /,/) { $cell[$rows][$i++] = $tmp };&lt;BR /&gt;        $rows++;&lt;BR /&gt;}&lt;BR /&gt;print "There were $columns columns read with $rows rows of datalines\n";&lt;BR /&gt;print "Columns are: ", join(", ",@col), "\n";&lt;BR /&gt;if (defined $y) {&lt;BR /&gt;        if ($y =~ /\d+/) {&lt;BR /&gt;                print "cell $x,$y = $cell[$x][$y ]\n";&lt;BR /&gt;        }else {&lt;BR /&gt;                print "cell $x,$y = $cell[$x][$col{$y}]\n";&lt;BR /&gt;        }&lt;BR /&gt;} else {&lt;BR /&gt;        print "no specific cell data requested\n";&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------     C:\Temp&amp;gt;type tmp.dat  -----------&lt;BR /&gt;a,b,c,d&lt;BR /&gt;aap,noot,mies,teun&lt;BR /&gt;12,34,56,78&lt;BR /&gt;test,,more test,done&lt;BR /&gt;&lt;BR /&gt;------------- usage examples -------------&lt;BR /&gt;&lt;BR /&gt;C:\Temp&amp;gt;perl csv.pl tmp.dat&lt;BR /&gt;There were 4 columns read with 3 rows of datalines&lt;BR /&gt;Columns are: a, b, c, d&lt;BR /&gt;no specific cell data requested&lt;BR /&gt;&lt;BR /&gt;C:\Temp&amp;gt;perl csv.pl tmp.dat 0 0&lt;BR /&gt;There were 4 columns read with 3 rows of datalines&lt;BR /&gt;Columns are: a, b, c, d&lt;BR /&gt;cell 0,0 = aap&lt;BR /&gt;&lt;BR /&gt;C:\Temp&amp;gt;perl csv.pl tmp.dat 0 d&lt;BR /&gt;There were 4 columns read with 3 rows of datalines&lt;BR /&gt;Columns are: a, b, c, d&lt;BR /&gt;cell 0,d = teun&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;C:\Temp&amp;gt;perl csv.pl tmp.dat 2 2&lt;BR /&gt;There were 4 columns read with 3 rows of datalines&lt;BR /&gt;Columns are: a, b, c, d&lt;BR /&gt;cell 2,2 = more test&lt;BR /&gt;&lt;/DATAFILE&gt;&lt;/DATAFILE&gt;</description>
      <pubDate>Thu, 03 Nov 2005 11:42:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-help-needed-reading-file-into-array-and-pulling-certain/m-p/3663231#M102591</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2005-11-03T11:42:59Z</dc:date>
    </item>
  </channel>
</rss>

