Am I misunderstanding you or did you just not notice the second paragraph:
$str =~ /Hulk hate (\w+)/k;
Note that demerphq has added /k to his regex. I don't see demerphq proposing any per-script or per-invocation flag that you seem to have imagined.
- tye
In reply to Re^3: An optimization of last resort: eliminate capturing from your regexps (//k)
by tye
in thread An optimization of last resort: eliminate capturing from your regexps
by diotalevi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |