http://www.perlmonks.org?node_id=967411


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.