Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Tweaking 'return'.

by fishbot_v2 (Chaplain)
on Nov 22, 2005 at 22:10 UTC ( [id://510937]=note: print w/replies, xml ) Need Help??


in reply to Re: Tweaking 'return'.
in thread Tweaking 'return'.

...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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://510937]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2024-04-19 01:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found