> ""Jeff" == "Jeff Pang" <[EMAIL PROTECTED]> writes:
"Jeff> but the second one is recommended, it looks more like the OO way.
It's more than just recommended. The indirect object form is actively
discouraged, because we've been finding more and more examples where
the inherent imbiguity in i
On Feb 15, 2008 11:56 PM, howa <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Currently I have seen two way to create objects in Perl:
>
> 1. my $a = new Apple...
> 2. my $a = Apple->new();
>
> What are the differences, and which one is recommended?
>
Both are fine:
$ perl -le 'package A;sub new{print shif