http://www.perlmonks.org?node_id=11119021


in reply to Re^2: Perl custom sort for Portuguese Lanaguage
in thread Perl custom sort for Portuguese Lanaguage

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?