Try only cutting out subroutines or things you can reduce to subroutines. Then load them with BEGIN{require "filename.pl"} and call the subroutines as needed.
Alternatively, disambiguate all the places that you have problems; in the example case, try print INVOICEVIEW (translate(...)."\n").
In reply to Re: cleaning up code with "do" ?
by ysth
in thread cleaning up code with "do" ?
by schweini
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |