[Koha-bugs] [Bug 14588] Simplify merge_ajax.pl

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Aug 19 15:25:38 CEST 2015


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

--- Comment #7 from M. Tompsett <mtompset at hotmail.com> ---
(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.


More information about the Koha-bugs mailing list