Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2016-09-29 00:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (544 votes). Check out past polls.