in reply to Re: Use Perl's Sort to only sort certain lines in a file?
in thread Use Perl's Sort to only sort certain lines in a file?

++, but if the input doesn't end with a "section" line, the last block will not be printed, so you have to put
>>>call sort routine<<< print @unsorted_input;
after the loop...

Replies are listed 'Best First'.
Re^3: Use Perl's Sort to only sort certain lines in a file?
by nlwhittle (Beadle) on Jan 01, 2015 at 20:29 UTC

    I knew I was missing something...

    --Nick