Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: How to call a sub-routine ref

by blue_cowdawg (Monsignor)
on Oct 22, 2012 at 12:47 UTC ( #1000324=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ cat greengaroo.pl 
    use strict;
    ...
    Hello World!
    Undefined subroutine &main::ref called at greengaroo.pl line 9.
    
  2. or download this
    &{$ref}();
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1000324]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2016-12-03 06:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (52 votes). Check out past polls.