in reply to Help with converting Python script to Perl for CSV sort
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)?.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Help with converting Python script to Perl for CSV sort
by jasonwolf (Sexton) on Jan 31, 2017 at 14:41 UTC | |
by Anonymous Monk on Jan 31, 2017 at 18:34 UTC |