From: Aredridel Date: 2003-11-20T02:39:52+09:00 Subject: Re: $& write-protected? > If you update $~ (the match result), $&, $1, etc. would follow > accordingly. So that the better RCR should be to create MatchData > without built-in regular expression match, I think. Here, here! I was trying to add some features to the regex engine and couldn't for similar reasons. (I was trying to leverage the built-in syntax for regexes, but to match against tree-shaped structures... Don't ask.) I eventually gave up because I couldn't create MatchData. Ari