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.

for my $x (qw( foo bar )) { /$x/o; }
is the same as
/foo/; /foo/;

It's used for optimising, but it's made rather useless by qr//.