I was also eyeballing the statement $mask=/_(\d\d)_/ . After some
investigation with use re 'debugcolor', it turns out
that the /_(\d\d)_/ gets compiled but nothing is stored in $mask. In effect, the statement
$_ =~ /$mask/
is equal to $_ =~ //
Re^2: Regular expressions and sort
Replies are listed 'Best First'.