Re: [exim] More integer annoyances in 4.65

Top Page
Delete this message
Reply to this message
Author: Dave Evans
Date:  
To: exim-users
Subject: Re: [exim] More integer annoyances in 4.65
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":

davide@ratty:~$ perl -we '1==""'
Argument "" isn't numeric in numeric eq (==) at -e line 1.
davide@ratty:~$

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