Note also, that due to a bug in current perls, the
$braces in the RE will always refer to the
first instance of $braces. If this var is declared
in file scope you're okay, but if its declared in a a sub or loop, you may have problems. I'm supposed to be fixing this for 5.10, but never seem to find the tuits. In the meantime you may want to use an our rather than a my.
Dave.