[OT] Perl woes

Jonathan Kimmitt Jonathan.Kimmitt at csr.com
Wed Jan 28 12:30:20 GMT 2009


Most people on this list seem to defend the perl design decision such
that

if ($item == "xyzzy")

should only emit a warning, because after all, a string can be converted
to a number with no loss of meaning (!).

However, what about this one:

for (my $i==0; $i<($tbl_width - 1); $i++) { .... }

Is anybody seriously arguing this could possibly do anything useful. Yet
it
is not trapped out as an error unless you add the obscure syntax:

use warnings FATAL => 'all';

to the beginning of your program.

PS the strange formatting of my original post was caused by
Outlook/Exchange.



More information about the london.pm mailing list