#!/usr/bin/perl use strict; use warnings; foo(); eval{foo()} or warn $@; print "Done\n"; sub foo { { no strict 'refs'; undef *{(caller(0))[3]}; } print "foo was called\n"; }
In reply to Re: undef-ing an active subroutine
by kennethk
in thread undef-ing an active subroutine
by perl5ever
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |