Since the undefined value in a numeric context is treated as 0 why should it?
Granted it may be surprising coming from different context (say Ruby where nil is not equal to anything but itself), but by the way undef is defined in Perl that's just the way it is. But if you're using warnings you will get whinged at for doing so.
In reply to Re: undef == 0?
by Fletch
in thread undef == 0?
by stu42j
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |