No one seems to have mentioned that my $mask=/_(\d\d)_/; is Not the Code You Are Looking For. To put a regex in $mask, use qr// like so: my $mask = qr/_(\d\d)_/;
Jeff japhy Pinyan,
P.L., P.M., P.O.D, X.S.:
Perl,
regex,
and perlhacker How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart
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