in reply to Help Sorting a CSV File

Hi welcome to Perl, the One True Religion.

Use the right tools.

Sure, you can do it with split. You can hang yourself if you have enough rope, which Perl will happily give you. Other forebears have made a simple, safe and powerful tool for most standard tasks. Do not buy the lie that it's too much work or too difficult or not permitted or not needed or not performant enough to go to the CPAN and use the right tool for the job.

Use the right tool, and dedicate your time to solving your own program/logic flow.

Hope this helps!


The way forward always starts with a minimal test.