Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

reorder subroutines in a perl file.

by polarbear (Novice)
on Oct 05, 2012 at 20:05 UTC ( #997537=perlquestion: print w/ replies, xml ) Need Help??
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?

Comment on reorder subroutines in a perl file.
Re: reorder subroutines in a perl file.
by toolic (Chancellor) on Oct 05, 2012 at 20:14 UTC
      That did just want I wanted. Thanks!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://997537]
Approved by toolic
Front-paged by davido
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2014-11-27 06:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (180 votes), past polls