Thread CSV-Import mit Text::CSV
(16 answers)
Opened by jan99 at 2015-08-31 13:13 Quote Zur "Sicherheit" nochmal die letzten Zeilen... Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 # read File while( my $row = $csv->getline( $fh ) ) { my $value={}; $value->{$key_names->[$_]}=$row->[$_] for(0..$#$key_names); push(@data,$value); } $Data::Dumper::Useqq(1); print Dumper(\@data); gruß Jan perl-Greenhorn - Win7 64bit / strawberry (ehem. activeperl) - www.OpenStreetMap.de
|