On Wed, Jan 03, 2007 at 12:45:50PM -0500, Wakko Warner wrote:
> # perl -e 'print "Its 0\n" if "" == 0'
> Its 0

But as every Perl user knows, always "use warnings" or "-w":

[EMAIL PROTECTED]:~$ perl -we '1==""'
Argument "" isn't numeric in numeric eq (==) at -e line 1.
[EMAIL PROTECTED]:~$

It sounds like treating "" as 0, but also emitting a warning (to where? - the
main log presumably) is probably a good compromise.

-- 
Dave Evans
Power Internet
http://www.powernet.co.uk/~davide/about-powernet.txt

Attachment: signature.asc
Description: Digital signature

-- 
## List details at http://www.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

Reply via email to