in reply to escaped \n in regex
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.
|
|---|