in reply to Can you use a scaler as an operator?
I'm afraid this won't work. You can either use an eval, use '/flags' mode, or use the (?adlupimsx-imsx) syntax. Personnaly, I don't like the second solution much, but the two others are mostly the same to me.
Eventually, if it's just a case matter, and not any flag, you could also lc the input.
|
---|
In Section
Seekers of Perl Wisdom