Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: How to call a sub-routine ref

by blue_cowdawg (Monsignor)
on Oct 19, 2012 at 18:34 UTC ( #1000012=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    
    | stuff before
    ...
    my $sref = \&foo 
    
    | stuff after
    
  2. or download this
    
    | later
    ...
    &($sref)( arg1....argn);
    
    |
    
  3. or download this
    #!/usr/bin/perl -w
    
    ...
            print "This is foo.\n";
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1000012]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2015-07-29 08:19 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 (261 votes), past polls