>>>>> "aa" == am0c am0c <[email protected]> writes:
aa> If you use
aa> $log = $log || '';
that should be $log ||= '' ;
aa> instead of
aa> $log = defined $log ? $log : '';
aa> It might yield a problem because when $log is "0" it is defined but
aa> false in boolean context.
aa> The correct shorter version is:
aa> $log = $log // '';
same here:
$log //= '';
also the use of // for defined or is relatively recent in perl. be
careful when using it as it may not work in the version you have
installed or in production.
uri
--
Uri Guttman ------ [email protected] -------- http://www.sysarch.com --
----- Perl Code Review , Architecture, Development, Training, Support ------
--------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com ---------
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/