We don't bite newbies here... much | |
PerlMonks |
Re^2: Is modifying the symbol table to redefine subroutines evil?by tlm (Prior) |
on Apr 11, 2007 at 22:03 UTC ( [id://609504]=note: print w/replies, xml ) | Need Help?? |
call_me_only_once() was meant to represent code that must be executed only on the first call to the function. I hadn't thought of the scenario you present, but I can see that the self-redefinition technique could be useful there too. the lowliest monk
In Section
Seekers of Perl Wisdom
|
|