Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: change perl function in runtime

by LanX (Saint)
on Dec 03, 2012 at 15:19 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1006894]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-19 14:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found