Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^5: Help with converting Python script to Perl for CSV sort

by poj (Abbot)
on Jan 31, 2017 at 18:56 UTC ( [id://1180712]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Help with converting Python script to Perl for CSV sort
in thread Help with converting Python script to Perl for CSV sort

You are seeing the output of print Dumper \@sorted; which is a quick way of inspecting the contents of a data structure. Just replace that line with what you had originally.

#print Dumper \@sorted; open my $fh_out,'>','output.csv' or die "$!"; foreach my $row ( @sorted ) { print $fh_out join( ',', @$row ), "\n"; } close $fh_out;
poj

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1180712]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-04-23 14:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found