Just another Perl shrine | |
PerlMonks |
Re: Help with converting Python script to Perl for CSV sortby hippo (Bishop) |
on Jan 31, 2017 at 14:36 UTC ( [id://1180689]=note: print w/replies, xml ) | Need Help?? |
It looks from the content of your post that you mean CSV rather than CVS. With that in mind you should definitely consider one of the CSV-based modules such as Text::CSV_XS rather than rolling your own. I am not understanding the sort in the “foreach” loop… is this regex ? No, this is sort. Perl has extensive, searchable, online documentation. Have a read of the linked page and see if that makes it all clear. Also perhaps the FAQ: How do I sort an array by (anything)?.
In Section
Seekers of Perl Wisdom
|
|