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
In reply to Re: Syntax error with nested for loop
by Myrddin Wyllt
in thread Syntax error with nested for loop
by tel2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |