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 _______________________________________________ Koha-patches mailing list [email protected] http://lists.koha.org/mailman/listinfo/koha-patches
