in reply to RE: Re: Object Troubles (CMonster: Wrong Way new?)
in thread Object Troubles
The second is a little more obscure, but equally mysterious. Suppose you have an overloaded method somewhere, and you use the indirect syntax (verb object, not object->verb) to call it. What happens if there's a namespace collision? Perl will try for the main::method_name() first, and that'll probably break things.
Yes, you can program for a long time before running into those kinds of errors, but when you do, you'll wish you'd listened. :)
|
|---|