in reply to Re: Can't locate object method
in thread Can't locate object method

Hah. broquaint++ The indirect syntax is a recipie for error (too bad so many people (including luminaries) come from a C++ background and perpetuate the syntax in CPAN module documentation.)

Another exaple of bizarreness that I came across was this:

my $obj=new Foo::Bar->new('parameter');
When using a dual purpose new (as in it works on classes and objects) the above wont raise an error and you may find yourself wondering why 'parameter' hasnt been passed to the returned object.

Of course your example is more likeyly to happen.... Alas. :-)

Yves / DeMerphq
---
Writing a good benchmark isnt as easy as it might look.