[Koha-patches] [PATCH] kohabug 2345: bad comparisons pervade reports

paul POULAIN paul.poulain at biblibre.com
Thu Jul 31 15:21:41 CEST 2008


Galen Charlton a écrit :
>> - the previous code is considered poor in Perl officially ?
>>     
>
> Bingo.  The proper way to test whether a scalar has an undefined value
> is by use of the defined() function; 'eq' is for string comparisons,
> and if warnings are enabled, Perl will complain if one side or the
> other of the comparison is undefined.
>   

very clear explanations, thx galen.

++ for setting strict ON for 3.2

-- 
Paul POULAIN
http://www.biblibre.com
Expert en Logiciels Libres pour l'info-doc
NOUVEAU TELEPHONE : 04 91 81 35 08




More information about the Koha-patches mailing list