sub A { print "in A\n" } my $oldA = *{main::A}{CODE}; sub A { print "entering A\n"; &$oldA(@_); print "leaving A\n"; }
You'd use that along with the facts that<bl>
In reply to Re: code review: pretty print sub entry/exit
by bikeNomad
in thread code review: pretty print sub entry/exit
by particle
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |