in reply to variables allowed inside iterative loops in regular expressions?

In addition to the answer you already have, try to avoid using $a and $b anwhere outside of a sort function where, of course, they have special meaning.

--t. alex
but my friends call me T.

ps 'Try to avoid' is a nice, Canadian way of saying never, ever do this .. just so you get my meaning. :)