polarbear has asked for the wisdom of the Perl Monks concerning the following question:

I am maintaining many perl files with lots of subroutines that are randomly scattered in the file. I'd like to find an easy way to put them all at the end in alphabetical order. Perltidy and other pretty printers I found do not seem to have this ability. Anyone know of a way to do this without writing my own parser?

Replies are listed 'Best First'.
Re: reorder subroutines in a perl file.
by toolic (Bishop) on Oct 05, 2012 at 20:14 UTC
      That did just want I wanted. Thanks!