in reply to Regex help
E:\Temp>perl -Mstrict -we "$_=7;die qq(matched '$&'\n) if '1234567_.'= +~/[$_]/" matched '7'
Seems like any punctation variables are interpolated inside regex character classes.
This is a surprise (for me at least; and to ww above too it seems)
Is that documented behaviour? Where?
Update: Fixed attribution of surprise, naming the wrong person (graff) when citing a post of ww.
In Section
Seekers of Perl Wisdom