in reply to Redefining Exported Subroutines (esp. in mod_perl/mason)
If this is for a small area of the program, wrap it in enclosing blocks, i.e., {}. Also, you may wish to put a 'local' in front of sub testsub.undef testsub(); sub testsub { eval 'whatever action you want to take' }
|
|---|