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.Foo::Bar::Baz->new()
In reply to Re: $foo = "Foo::Bar"; $foo->new() works?
by BUU
in thread $foo = "Foo::Bar"; $foo->new() works?
by mikfire
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |