Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: reference to a sub

by Zaxo (Archbishop)
on Sep 11, 2005 at 07:30 UTC ( [id://491026]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %dispatch_table = (
        foo => \&foo,
        bar => sub { mumble; },
    );
    
  2. or download this
    sub generate {
        my $foo = shift;
        sub { $foo };
    }
    
  3. or download this
    sub callit {
        my $sub = shift;
        $sub->(@_);
    }
    
  4. or download this
    # in a scope . . .
        local *foo = generate 'bar';
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2024-04-24 23:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found