Perl Monk, Perl Meditation | |
PerlMonks |
Re: Help with converting Python script to Perl for CSV sortby poj (Abbot) |
on Jan 31, 2017 at 14:52 UTC ( [id://1180692]=note: print w/replies, xml ) | Need Help?? |
Can the same code be used for both?
Not exactly, to sort field 2 alpha sort { $a->[1] cmp $b->[1] }or field 1 numeric sort { $a->[0] <=> $b->[0] }poj
In Section
Seekers of Perl Wisdom
|
|