Writing ref $proto || $proto allows the caller of the constructor to create a new object by calling:
Some people (who are seen as "knowledgable") claim that $obj -> new confuses the hell out of them and that hence constructors should not contain ref $proto || $proto.$obj -> new;
I think that's silly. If something confuses you, don't use it. No need to jihad the thing that enables you to get confused.
In reply to Re^3: bless with => separated args
by Anonymous Monk
in thread bless with => separated args
by jaa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |