Note that I put the second call to foo into an eval because Perl looks up the symbol at compile type.use strict; use warnings; sub foo { delete $::{foo}; print "alive\n"; } foo(); eval "foo()" or die $@;
In reply to Re: undef-ing an active subroutine
by moritz
in thread undef-ing an active subroutine
by perl5ever
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |