[OT] Perl woes
Andy Armstrong
andy at hexten.net
Wed Jan 28 13:05:48 GMT 2009
On 28 Jan 2009, at 12:30, Jonathan Kimmitt wrote:
> 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';
It throws a warning with 'use warnings' - which is not at all obscure.
Would you compile C with warnings turned off?
--
Andy Armstrong, Hexten
More information about the london.pm
mailing list