http://www.perlmonks.org?node_id=114097


in reply to simple OO constructor

Some people think $obj->new is "wrong". Regardless, I'd shrink the constructor to:
sub new { bless {}, ref($_[0]) || $_[0]; }

_____________________________________________________
Jeff[japhy]Pinyan: Perl, regex, and perl hacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;