in reply to Re: Syntactic Question
in thread Two argument bless syntax
Might be doing creation or cloning depending on whether $name is a string or a reference. Also he makes the point that it complicates the constructor code for no good reason.my $obj = $name->new( @args );
So yeah, this is a slick trick that people used to like, but it's gone out of favor.
(You can blame Conway for helping to promulgate this idiom: he uses it in places in his earlier work "Object Oriented Perl".)
|
|---|