2009/1/28 Jonathan McKeown <jonathan+londo...@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