I think this is consistent. Perl lets you embed hard newlines in string literals, which are taken for what they are -- newlines. Double quoted interpolation rules also say that \ followed by anything that's not a recognized metacharacter sequence interpolates to the character following the backslash. This is why the two above are equivalent ... which is what I think the question is.
In reply to Re: escaped \n in regex
by steves
in thread escaped \n in regex
by powerman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |