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

Re: How to de-reference a coderef?

by duff (Vicar)
on Dec 09, 2004 at 14:55 UTC ( #413557=note: print w/replies, xml ) Need Help??


in reply to How to de-reference a coderef?

You typically don't need the name of the subroutine. The subroutine may not even have a name if it's anonymous. If you have the reference, just use $code_ref->(@args) to execute it or &{$code_ref}(@args).

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://413557]
help
Chatterbox?
[talexb]: Hmm .. fascinated to learn that there's no INT function in SQL Server, only FLOOR and CEIL. #interestingjobint erviewquestion
[Corion]: talexb: How about convert( decimal( 10,0 ), EXPR )) ? ;-D
[Corion]: On the upside, $work has published two openings for cow-orkers; we'll see whether someone wants to work here ;)

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



























    Results (265 votes). Check out past polls.

    Notices?