in reply to Wrong package used when method and package have the same name
It's a known limitation of the indirect method call syntax. Instead of
new Example::Foo::One('arg' => 'value')
use
Example::Foo::One->new('arg' => 'value')
Update: Thanks blazaar and davorg. It's easy to miss things when one has just woken up.
I think changing
Example::Foo::One
to
Example::Foo::One::
will do the trick.
>perl -le "$c = Example::Foo::One::; print $c" Example::Foo::One
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Wrong package used when method and package have the same name
by davorg (Chancellor) on May 02, 2006 at 14:19 UTC | |
by ikegami (Patriarch) on May 02, 2006 at 14:20 UTC |