[Israel.pm] Indirect method call's in mod_perl
Shlomi Fish
shlomif at iglu.org.il
Tue Jun 15 03:38:49 PDT 2004
On Tuesday 15 June 2004 13:26, Itzik Lerner - Orpak wrote:
> Hi Everybody .
>
> In mod_perl coding style written:
>
> Avoid indirect method calls, e.g.
> Do:
> CGI::Cookie->new
> Don't:
> new CGI::Cookie.
>
> Can someone explain why ?
>
Well, for once, I recall that the "new MyModule" syntax gave me some problems
with either -w or "use strict". (at least after I passed some arguments to
the constructor). I've been consistently using "MyModule->new()" ever since.
That's just my guess.
Regards,
Shlomi Fish
> --Itzik
>
>
> _______________________________________________
> Perl mailing list
> Perl at perl.org.il
> http://www.perl.org.il/mailman/listinfo/perl
--
---------------------------------------------------------------------
Shlomi Fish shlomif at iglu.org.il
Homepage: http://shlomif.il.eu.org/
Quidquid latine dictum sit, altum viditur.
[Whatever is said in Latin sounds profound.]
More information about the Perl
mailing list