laziness, impatience, and hubris | |
PerlMonks |
Re: $foo = "Foo::Bar"; $foo->new() works?by BUU (Prior) |
on Jan 23, 2005 at 03:59 UTC ( [id://424329]=note: print w/replies, xml ) | Need Help?? |
Er, the exact same reason:
works. Perl just needs a package name as a string to look up the appropiate method, it doesn't care if the string is in the form of a bareword or contained in a scalar.
In Section
Seekers of Perl Wisdom
|
|