This way you don't care if $class is a reference or not!package PackageName ; sub new { $class = shift ; return bless {}, PackageName ; }
In reply to Re^2: Objects and references
by jeanluca
in thread Objects and references
by jeanluca
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |