Thanks. That reminded of one thing I had been trying to remember to include:
$ perl -e'print qr/C$\n^D/,$/' (?-xism:Cn^D) $ perl -le'print qr/C$\n^D/' (?-xism:C n^D)
which is a lower-tech way to notice that your regex wasn't parsed the way you expected. (It also demonstrates why I use -l: so I don't have a append newlines to each of my print statements.)
- tye
In reply to Re^3: Why \n matches but not $^? (dump)
by tye
in thread Why \n matches but not $^?
by tel2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |