in reply to cleaning up code with "do" ?
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").
|
|---|