more useful options | |
PerlMonks |
Re: escaped \n in regexby pfaut (Priest) |
on Feb 20, 2003 at 00:31 UTC ( [id://236916]=note: print w/replies, xml ) | Need Help?? |
Perl doesn't do things to be 'cool'. It does things to be useful. Besides, what 'cool' thing did you expect perl to do with that, anyway? You embedded a literal newline in your regular expression. That matches newlines in the string you match against as you can see by your test code. Putting a backslash in front of it does nothing since it's not a special character.
In Section
Seekers of Perl Wisdom
|
|