In perl, can I call a method before executing every function in a package?

Posted by hermanningjaldsson on Stack Overflow See other posts from Stack Overflow or by hermanningjaldsson
Published on 2010-04-18T17:22:38Z Indexed on 2010/04/19 1:13 UTC
Read the original article Hit count: 223

Filed under:
|
|

I am writing a module and I want a specific piece of code to be executed before each of the functions in it.

How do I do that?

Is there no other way than to just have a function-call at the beginning of every function?

© Stack Overflow or respective owner

Related posts about perl

Related posts about function