Thread CSV-Import mit Text::CSV (16 answers)
Opened by jan99 at 2015-08-31 13:13

jan99
 2015-08-31 15:35
#181955 #181955
User since
2008-09-18
439 Artikel
BenutzerIn
[default_avatar]
Quote
C:\Perl-Tools\mnu_auslesen>perl csv2perl.pl
syntax error at csv2perl.pl line 29, near "$Data::Dumper::Useqq("
Execution of csv2perl.pl aborted due to compilation errors.


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

View full thread CSV-Import mit Text::CSV