how can I make it ignore all lines starting with a hash - e.g. '/^#/' - is that possible with this solution?
This depends on what you mean by "ignore" - I have a suspicion that perhaps your input file is in sections separated by comments, and you want the sections to be sorted individually? Could you show some short but representative sample input and the expected output for that input?
|Replies are listed 'Best First'.|
Re^4: Perl custom sort for Portuguese Lanaguage
by Galdor (Sexton) on Jul 08, 2020 at 06:38 UTC
by haukex (Bishop) on Jul 08, 2020 at 18:03 UTC