[OT] Perl woes
Jonathan Stowe
jns at integration-house.com
Wed Jan 28 13:24:43 GMT 2009
2009/1/28 Jonathan McKeown <jonathan+londonpm at hst.org.za>:
> On Wednesday 28 January 2009 14:30:20 Jonathan Kimmitt wrote:
>
>> 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';
>
> I think you've got two mistakes here. If you wanted to go round the loop
> $tbl_width times starting from 0, you needed either
>
I suspect that the actual problem is the use of the comparison rather
than assignment in the first clause of the C style for.
/J\
--
http://rabidgravy.com/ - Music
http://gellyfish.co.uk/ - Everything else
More information about the london.pm
mailing list