If it doesn't do exactly what you want already perhaps you could tweak AutoSplit? That does have certain formatting expectations about the source though (I believe; been a while since I've mucked with it). There's also PPI if you have fancier needs.
In reply to Re: Program to split a Perl program into subs
by Fletch
in thread Program to split a Perl program into subs
by swampyankee
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |