in reply to Syntax error with nested for loop

Hi Tel2

Not directly related to your question, which was answered by Athanasius, but just to point out that it's a bad idea to use $a and $b as example variables, as they have a special meaning in perl.

Common practice is to use  $foo, $bar, $baz etc. for that sort of thing

Replies are listed 'Best First'.
Re^2: Syntax error with nested for loop
by tel2 (Pilgrim) on Sep 22, 2015 at 21:04 UTC
    Thanks Myrddin.

    Good thing I wasn't trying to sort anything in this example code, I guess.