Seriously, what's wrong with a much easier approach like this?
Or maybe this code belongs in a BEGIN block.our $FOO_HAS_BEEN_CALLED; sub foo { if (not $FOO_HAS_BEEN_CALLED) { call_me_only_once(); $FOO_HAS_BEEN_CALLED = 1; } }
In reply to Re: Is modifying the symbol table to redefine subroutines evil?
by perrin
in thread Is modifying the symbol table to redefine subroutines evil?
by tlm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |