True, but this doesn't apply here, it's literal a search pattern (i.e. compile time), the m is just optional:
Both generate exactly the same opcodes:
"expressions evaluated at runtime" are things like variables or functions or do-blocks...
DB<103> $x= '\w{3}' => "\\w{3}" DB<104> 'abc' =~ $x => 1 DB<105> sub regex { '\w{3}' } DB<106> 'abc' =~ regex() => 1
Cheers Rolf
( addicted to the Perl Programming Language)
In reply to Re^3: Misreading m// documentation (perlop =~ )
by LanX
in thread Misreading m// documentation
by QM
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |