No. new is in package My::Foo (or one of its descendants), not in unrelated package Foo. You seem to missing that Foo is a fully qualified package name.
Now, if the current package had a function named Foo that returned the string "My::Foo", ...
In reply to Re: Question about new()
by ikegami
in thread Question about new()
by sman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |