On Wed, May 6, 2009 at 6:26 AM, Nahuel ANGELINETTI <
[email protected]> wrote:
> + if ( !$left || $left eq '' ) {
>
That test is no different than:
if (!$left)...
That is, the second part of the conditional will never be evaluated true,
since empty string evaluates to false and "! FALSE" will have already proven
true on the first part.
You can confirm with:
perl -e 'my $x = ""; print ($x ? "yes\n" : "no\n");'
--
Joe Atzberger
LibLime - Open Source Library Solutions
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches