Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: strings->can->isa but numbers->can't?

by djerius (Beadle)
on Apr 26, 2012 at 17:37 UTC ( #967411=note: print w/ replies, xml ) Need Help??


in reply to Re: strings->can->isa but numbers->can't?
in thread strings->can->isa but numbers->can't?

Strings are simply interpreted as package names when you call a method on them. This is how Foo->new works in the first place.

D'oh! Of course! I even use that behavior on occasion.

Thanks for the reminder.


Comment on Re^2: strings->can->isa but numbers->can't?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2014-07-30 04:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (229 votes), past polls