laziness, impatience, and hubris | |
PerlMonks |
Re^2: bless with => separated argsby jaa (Friar) |
on Aug 01, 2005 at 09:32 UTC ( [id://479836]=note: print w/replies, xml ) | Need Help?? |
Thanks for the detail on fat-comma.
Any reason why "(ref $class || $class)" is deprecated? It is useful if you want a new instance based on the same class as an existing object, without having to hard-code the class name. The only reason that I have heard is that most people start OO by copying the examples, without understanding the code, which surely is not a strong enough reason for deprecation? Regards, Jeff
In Section
Seekers of Perl Wisdom
|
|