in reply to Meta-perl - sorting my perl subs with perl?
Maybe you can start with B::Xref and render the output as a report?
perl -MO=Xref YourMod.pm
Update: Perhaps, I misunderstood... you seem to want to sort the source code, such that e.g. sub a_func comes before/above sub b_func?
Personally, I would rather group the subs by functionality and let the editor do the work localising the subs (e.g. Emacs Imenu, other editors have similar functionality).
But with an amount of 150 subs, there is a good chance they can be grouped in specialised (sub-)modules, reducing the set of subs to an amount that can be managed (read: edit, document, test) with less effort.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Meta-perl - sorting my perl subs with perl?
by mbethke (Hermit) on Jan 20, 2012 at 21:16 UTC | |
|
Re^2: Meta-perl - sorting my perl subs with perl?
by Syndaryl (Initiate) on Jan 23, 2012 at 14:48 UTC | |
by Anonymous Monk on Jan 23, 2012 at 15:15 UTC |