[OT] Perl woes
Martin A. Brooks
martin at antibodymx.net
Wed Jan 28 11:27:53 GMT 2009
Jonathan Kimmitt wrote:
> Whoever said, the primary purpose of a compiler is to check for
> errors,
> and only if there are no errors, create the code, was most
> definitely not talking about Perl.
>
> The next time I use == instead of eq to compare two strings, I
> will know to expect it will always
> evaluate to true. What other language does this (apart from C,
> which would invariably return false)
>
> It would be a trivial matter to return an error or warning if ==
> is used for items which aren't numbers
>
> And this is in a language which is praised for its powerful
> string handling !
>
"use strict; use warnings;" perhaps?
Also, would you like someone to help you fix your keyboard? :)
--
Martin A. Brooks | http://www.antibodymx.net/ | Anti-spam & anti-virus
Consultant | martin at antibodymx.net | filtering. Inoculate
antibodymx.net | m: +447792493388 | your mail system.
More information about the london.pm
mailing list