...but I think there's another one...
There is Hook::LexWrap:
use Hook::LexWrap; wrap( $_, pre => sub { print "$_ begin\n" }, post => sub { print "$_ end\n" }, ) for @subs_to_wrap;
Updated example to be more inline with OP's requirements.
In reply to Re^2: Tweaking 'return'.
by fishbot_v2
in thread Tweaking 'return'.
by eff_i_g
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |