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 reply to Re^2: bless with => separated args
by jaa
in thread bless with => separated args
by jaa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |