in reply to dynamic 2d array
If you wanted to get fancy (and cryptic), you could try:push @d_array, [ $csv->fields() ];
@d_array = map { $csv->parse($_) ? [ $csv->fields() ] : warn($csv->error_input), () } <INFILE>;
I also suggest you pass a reference to printrow():
UpdateFix typo, and formatted better.sub printRow{ my ($aref) = @_; print Dumper($aref); } ## call like this .. printRow(\@d_array); # using & is deprecated
Have you been high today? I see the nuns are gay! My brother yelled to me...I love you inside Ed - Benny Lava, by Buffalax
|
---|