in reply to Re: bless with => separated args
in thread bless with => separated args
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: bless with => separated args
by davorg (Chancellor) on Aug 01, 2005 at 09:42 UTC | |
by Anonymous Monk on Aug 01, 2005 at 11:04 UTC | |
by davorg (Chancellor) on Aug 01, 2005 at 11:14 UTC | |
by Anonymous Monk on Aug 01, 2005 at 12:02 UTC | |
|
Re^3: bless with => separated args
by blazar (Canon) on Aug 01, 2005 at 09:58 UTC | |
by Anonymous Monk on Aug 01, 2005 at 11:07 UTC | |
|
Re^3: bless with => separated args
by Anonymous Monk on Aug 01, 2005 at 10:56 UTC |