http://www.perlmonks.org?node_id=983581


in reply to Changing every subroutine in many perl scripts

Do you need the text to be in the files or do you need to do something at the start of the subroutines' execution? If the later, have a look at Hook::LexWrap, Class::Wrap and possibly Devel::TraceSubs for an example how to wrap everything in a package.

Jenda
Enoch was right!
Enjoy the last years of Rome.