in reply to Reading file into an array and working with it.
use Text::CSV; my @locations; my $csv = Text::CSV->new(); open (FILE, "locations.csv") or die "Couldn't open location file: $!"; while (<FILE>) { $csv->parse($_); push(@locations, [$csv->fields]); } close FILE;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: Reading file into an array and working with it.
by davorg (Chancellor) on Jun 26, 2000 at 12:25 UTC | |
by httptech (Chaplain) on Jun 26, 2000 at 16:29 UTC | |
by davorg (Chancellor) on Jun 26, 2000 at 16:44 UTC | |
by httptech (Chaplain) on Jun 26, 2000 at 16:53 UTC | |
by davorg (Chancellor) on Jun 26, 2000 at 16:56 UTC |