in reply to Re: "used only once" warning from Class::Std
in thread "used only once" warning from Class::Std
Thanks for that. It looks like good guidance for future changes/implementations. None the less, I would like to understand why perl is behaving the way that it is.
BTW, it occurs to me that a reference to sub DESTROY is being added to the namespace of the package that uses Class::Std. Thus, in my test case, the sub isn't being invoked as Class::Std::DESTROY, but rather as MyClass::DESTROY. But it's the same code and I don't see how that would make any difference to whether the warning is issued or not.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: "used only once" warning from Class::Std
by Anonymous Monk on Apr 25, 2010 at 03:21 UTC | |
by ig (Vicar) on Apr 25, 2010 at 04:52 UTC |