This is something between a SOPW and a Meditation. I'm not really asking a question, just grousing...
I suspect every language has its idiosyncratic compiler error messages. I know Perl is not immune. Consider:
Here are the offending lines:C:\>perl -c ag2gen.pl "my" variable $i masks earlier declaration in same statement at ag2gen +.pl line 1391. "my" variable @test_order masks earlier declaration in same scope at a +g2gen.pl line 1391. "my" variable @test_order masks earlier declaration in same statement +at ag2gen.pl line 1393. "my" variable $i masks earlier declaration in same statement at ag2gen +.pl line 1393. "my" variable @test_order masks earlier declaration in same statement +at ag2gen.pl line 1393. "my" variable $j masks earlier declaration in same statement at ag2gen +.pl line 1393. "my" variable %test_order masks earlier declaration in same scope at a +g2gen.pl line 1394. "my" variable @test_order masks earlier declaration in same statement +at ag2gen.pl line 1394. "my" variable $i masks earlier declaration in same statement at ag2gen +.pl line 1394. "my" variable @test_order masks earlier declaration in same statement +at ag2gen.pl line 1394. "my" variable $j masks earlier declaration in same statement at ag2gen +.pl line 1394. syntax error at ag2gen.pl line 1389, near "2]" ag2gen.pl had compilation errors.
for my $i doesn't mask anything. In fact, it doesn't compile (at least, not completely).1389: for my $i (0..@test_order-2]) 1390: { 1391: for my $j ($i+1..@test_order-1) 1392: { 1393: unless ( ( $test_order[$i] eq $test_order[$j] ) 1394: or exists($test_order{"$test_order[$i]\t$test_order[$j]"} +) )
-QM
--
Quantum Mechanics: The dreams stuff is made of
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: More Misleading Compiler Error Messages
by ikegami (Patriarch) on Aug 01, 2006 at 23:17 UTC | |
by QM (Parson) on Aug 02, 2006 at 01:18 UTC | |
by ikegami (Patriarch) on Aug 02, 2006 at 04:57 UTC | |
by QM (Parson) on Aug 02, 2006 at 14:23 UTC | |
by ikegami (Patriarch) on Aug 02, 2006 at 17:37 UTC | |
by Anonymous Monk on Aug 02, 2006 at 02:26 UTC |
Back to
Meditations