Aleksi Niemel<aleksi.niemela / cinnober.com> writes:

> BTW. You might want add a point to the article. I though exactly what you
> did about $1 -variables with

Well, the article _does_ say that $~ is thread-specific. Elsewhere in
the book (in the section listing the variables in the language
reference chapter) we say that all the match variables are local to
the current scope.

The article was not intended to be a complete free-standing
description of regular expressions, so we didn't cover all the scope
issues. Instead, we just wanted to show folks that MatchData was
available, and could be useful.

Thanks for the feedback.


Dave