[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

Re: exists $foo[7] and delete $foo[7]



>Ah no. Not another strange but magic value.
>We have too many of these already.

>"0 but true", indeed...  :-/

Oh, I have another one of those for you.  The result of an expression
like (1 == 0) is another strangly magic value.  It behaves like
undef insofar as counting as a string of length 0 in string context
(""), but as a proper 0 when used numerically.  Yet unlike undef,
it elicits no complaints from using the -w flag.

--tom


[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]