Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: How to call a sub-routine ref

by blue_cowdawg (Monsignor)
on Oct 19, 2012 at 18:34 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1000012]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-19 20:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found