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

Re^3: Invoking a string reference to a anonymous subroutine

by LanX (Saint)
on Jan 14, 2014 at 22:53 UTC ( [id://1070623]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Invoking a string reference to a anonymous subroutine
in thread Invoking a string reference to a anonymous subroutine

Hey AnomalousMonk

none of this methods will ever see @ISA. :)

see also Autoboxing ... "Yes We Can" ( or how I learned to love TIMTOWTDI ;)

42 is just a dummy object, I was too lazy to fake a class for this little demo.

Cheers Rolf

( addicted to the Perl Programming Language)

  • Comment on Re^3: Invoking a string reference to a anonymous subroutine

Replies are listed 'Best First'.
Re^4: Invoking a string reference to a anonymous subroutine
by AnomalousMonk (Archbishop) on Jan 15, 2014 at 00:04 UTC

    I see: the trick is the RHS of the  -> must be a code reference. Hmmm... I dunno...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-25 17:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found