That's was my initial thought too. But then I tried it and found that it still didn't work correctly (although it failed in a different manner). And, in fact, the original poster had already tried that to.
If the syntax of the line is changed to this:
my $one = Example::Foo::One->new('arg' => 'value');the same error occurs (albeit with a different error message).
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re^2: Wrong package used when method and package have the same name
by davorg
in thread Wrong package used when method and package have the same name
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |