Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Let a module call a sub of the caller

by voj (Acolyte)
on Sep 07, 2012 at 07:22 UTC ( #992256=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use My::Module qw(call);
    
    call(\&foo);
    
    sub foo { ... };
    
  2. or download this
    use My::Module call => 'foo';
    
    sub foo { ... };
    
    # foo is called at the end
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2017-02-21 13:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (309 votes). Check out past polls.