Don't ask to ask, just ask | |
PerlMonks |
Re: How to instrument a "fake" subroutine?by ton (Friar) |
on May 22, 2002 at 19:08 UTC ( [id://168550]=note: print w/replies, xml ) | Need Help?? |
To check if the subroutine really exists: if (defined(&Fcntl::LOCK_EX)) To get desired behavior: just call the subroutine once before attempting to redefine it.
-Ton
In Section
Seekers of Perl Wisdom
|
|