/foo$.*^bar/ms - is this $. (the variable) or EOL followed by random stuff?
It's the variable. Fixed:$ perl -E'say qr/foo$.*^bar/ms' (?^ums:foo*^bar)
$ perl -E'say qr/foo(?:$).*^bar/ms' (?^ums:foo(?:$).*^bar)
In reply to Re: Disambuating $ in (especially /m) regexps
by ikegami
in thread Disambuating $ in (especially /m) regexps
by tlhackque
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |