in reply to hashref to arrayref
ormy $errors = {}; #or my $errors=\%existing_hash; my $array_ref=[%$errors]; my $csvout = new IO::File "> csvoutput.csv"; my $status = $csv->print ($csvout, [%$errors])
should work.my %errors = (); my $array_ref=[%errors]; my $csvout = new IO::File "> csvoutput.csv"; my $status = $csv->print ($csvout, [%$errors])
my $status = $csv->print ($csvout, $array_ref);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: hashref to arrayref
by mcarthey (Novice) on Jul 31, 2009 at 13:34 UTC | |
|
Re^2: hashref to arrayref
by mcarthey (Novice) on Jul 31, 2009 at 15:54 UTC | |
by ssandv (Hermit) on Jul 31, 2009 at 16:09 UTC | |
by mcarthey (Novice) on Jul 31, 2009 at 17:46 UTC |