Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: calling subs using references.by rinceWind (Monsignor) |
on May 22, 2007 at 14:46 UTC ( [id://616780]=note: print w/replies, xml ) | Need Help?? |
I have a niggle. There's a misquoted idiom in your constructor. The line is:
If $caller is false, there's no way it can be a reference. The idiom you've misquoted has the or round the other way, which allows the user to pass in an existing object from which you derive the package name. In practice, nobody's ever going to call new on an existing object. There's thus no need to document and test for this special case, just code it as:
--
In Section
Seekers of Perl Wisdom
|
|