in reply to A regular expression (or regex)
can somebody please explain to me whats the "o" means.
In interpolating patterns, /o will only interpolate once, the first time the regex is evaluated.
is the same asfor my $x (qw( foo bar )) { /$x/o; }
/foo/; /foo/;
It's used for optimising, but it's made rather useless by qr//.
|
|---|