sub foo { call_me_only_once(); no warnings 'redefine'; *foo = sub { ... }; # the final foo goto &foo; }
?
Update: inserted the missing "no warnings" line.
the lowliest monk
In reply to Is modifying the symbol table to redefine subroutines evil? by tlm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |