Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: How to de-reference a coderef?

by Anonymous Monk
on Dec 09, 2004 at 15:09 UTC ( #413567=note: print w/replies, xml ) Need Help??


in reply to How to de-reference a coderef?

No, if only for the fact it doesn't have to have a name:
my $code_ref = sub {print "Hello, $_[0]\n"};
Or it might have multiple names. foo_bar might have been imported from another package (or exported to another one).

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://413567]
help
Chatterbox?
[shmem]: protloose? can't parse that
[choroba]: neither can I
[choroba]: and the first Google hit is tagged "human feces" :-o
[choroba]: oh, missed the double o
[shmem]: "brotlos"?
[shmem]: heavy protein discharge?

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (10)
As of 2017-08-17 10:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (286 votes). Check out past polls.

    Notices?