[tex-live] Patch to updmap.pl

Joachim Schrod jschrod at acm.org
Tue Sep 4 11:19:34 CEST 2007


Zdenek Wagner wrote:

> If we do want to check against either an empty string or undefined,
> it's even simpler to write
> 
> $mode = "URWkb" unless $mode;

This also checks against the value 0, since 0 is false as well.
(But not against "0E0", even though that evaluates to 0 in numeric 
contexts.) The DWIM feature of Perl is not always what one wants.

Therefore I recommend to use the boolean meaning of Perl variables 
only if they are really boolean, and make the comparison intention 
explicitly clear in all other cases.

	Joachim

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Joachim Schrod				Email: jschrod at acm.org
Roedermark, Germany



More information about the tex-live mailing list