in reply to Re: Wrong package used when method and package have the same name
in thread Wrong package used when method and package have the same name

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).

--
<http://dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg

  • Comment on Re^2: Wrong package used when method and package have the same name
  • Download Code

Replies are listed 'Best First'.
Re^3: Wrong package used when method and package have the same name
by ikegami (Patriarch) on May 02, 2006 at 14:20 UTC
    aye, I've just realized that. I was on my way to update my post.