in reply to Re: Perl inheritance
in thread [Resolved]Perl inheritance
The order of arguments to bless in the OP is correct.
BTW: My favorite "off-label" use of the => (fat comma) operator (see perlop) is in a statement like
return bless $object_ref => $class;
which can be read "return the result of blessing object reference into class".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Perl inheritance
by Anonymous Monk on Apr 18, 2014 at 23:25 UTC |