in reply to Re^3: hashref to arrayref
in thread hashref to arrayref
The problem was that in my original code I was returning array references to the elements in the @values array. I simply had to remove the brackets and all is good. Thanks again for all your time!my @values = map { ( $errors{$_}{'date'}, $errors{$_}{'time'}, $errors{$_}{'cnt' +}, $_ ) } keys %errors; my $value_ref = [@values]; my $file_ref = new IO::File "> csvoutput.csv"; my $status = $csv->print ($file_ref, $value_ref)
|
|---|