To match '.' with "\n", you need the /s modifier on your match operation. Regexen ignore $/ for that, it is only for delimiting "lines" in IO*. You're using it correctly for that.
* Strictly speaking, $/ is the delimiter only for input.
After Compline,
Zaxo
In reply to Re: $/ = undef question
by Zaxo
in thread $/ = undef question
by GaijinPunch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |