On Fri, 18 Jun 2004 09:30:56 EDT, <[EMAIL PROTECTED]> wrote:
Greetings,
As a learning Perl Person, this is fun. Would someone please point me
in the
correct direction to read a comma delimited file and put it into an
array?
The fields are always in the same position, blank fields will have a
On 18 Jun 2004, at 14:30, [EMAIL PROTECTED] wrote:
As a learning Perl Person, this is fun. Would someone please point me
in the
correct direction to read a comma delimited file and put it into an
array?
http://search.cpan.org/~alancitt/Text-CSV-0.01/CSV.pm
http://search.cpan.org/~jwied/Text-CSV_
Try this
%hashVal;
open(FH,"sample.txt")|| die "Could not open $!\n";
@FileLines = ;
$i=0;
foreach $line (@FileLines) {
my @commaLines = split(/,/,$line);
$arrval [EMAIL PROTECTED];
$hashVal{$i} =$arrval;
$i++;
}
foreach $keyval (keys %hashVal) {
$ra_val = $hashVal{$keyval};
foreach $va
Greetings,
As a learning Perl Person, this is fun. Would someone please point me in the
correct direction to read a comma delimited file and put it into an array?
The fields are always in the same position, blank fields will have a comma.
My sample is:
header10,header11,,header13
header20,hea