http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14588

--- Comment #7 from M. Tompsett <[email protected]> ---
(In reply to Jonathan Druart from comment #5)
> (In reply to Marcel de Rooy from comment #1)
> >(Note that Class::->method is preferred above Class->method. See perlobj.)
> 
> I did not find where it's written it's better.
> I personally think you are adding a third way where we already have new CGI
> and CGI->new...

I agree that "better" is not the word used. However, it is expressly explicit
in how Perl should interpret the call. There is something to be said positively
for explicitness.

"Because Perl allows you to use barewords for package names and subroutine
names, it sometimes interprets a bareword's meaning incorrectly."
http://perldoc.perl.org/perlobj.html#Invoking-Class-Methods

Though, I do share Jonathan's view that CGI->new is sufficient. This explicit
syntax is an example of confusing ugliness that I personally would prefer to
avoid.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to