Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 rifling through the Monastery: (11)
As of 2015-07-07 14:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (90 votes), past polls