(note the parens) ... say for ($str =~ m/$rex/g);The parens in the for? Those do absolutely nothing.
In reply to Re^4: Use global flag when declaring regular expressions with qr?
by ysth
in thread Use global flag when declaring regular expressions with qr?
by unmatched
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |