Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: change perl function in runtime

by LanX (Bishop)
on Dec 03, 2012 at 15:19 UTC ( #1006894=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    {
      package A;
    ...
      ...
    }
    # &x reset after leaving block
    
  2. or download this
    $old_coderef = \&x;
     
    ...
    ... # (but think about the omen ;-)
     
    *x = $old_coderef;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1006894]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2017-10-20 20:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (267 votes). Check out past polls.

    Notices?