in reply to Re^2: Meta-perl - sorting my perl subs with perl?
in thread Meta-perl - sorting my perl subs with perl?

stick __END__ at the top of your file, then use

perl -MAutoSplit -e  " autosplit( $ARGV[0], $ARGV[1], 0, 0 ) " lib/Some/File.pm  out/dir/like/a/lib

This will generates one file for each function, then you can glob/sort/cat and reconstitute Some::File with subs in sorted order