Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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 meditating upon the Monastery: (5)
As of 2014-09-22 03:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (178 votes), past polls