|
|
| laziness, impatience, and hubris | |
| PerlMonks |
Re: strings->can->isa but numbers->can't?by moritz (Cardinal) |
| on Apr 26, 2012 at 15:32 UTC ( #967387=note: print w/ replies, xml ) | Need Help?? |
|
Strings are simply interpreted as package names when you call a method on them. This is how Foo->new works in the first place. There is no such provision for numbers, arrays, hashes or subroutines.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||