A quoted string or a scalar has successfully bound via =~ as long as I've been doing Perl, since 5.6.1:
[21:40:24.90] P:\test>perl5.6.1 -wle" 'fred' =~ '(re)' and print $1" re [21:41:41.51] P:\test>perl5.6.1 -wle"$re = '(re)'; 'fred' =~ $re and p +rint $1" re
But if you need modifiers, then you need m//opts
In reply to Re: Naked quotes work like m//?
by BrowserUk
in thread Naked quotes work like m//?
by samtregar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |