Don't ask to ask, just ask | |
PerlMonks |
Re^4: Passing variables into regular expressionsby johngg (Canon) |
on Apr 20, 2006 at 14:08 UTC ( [id://544605]=note: print w/replies, xml ) | Need Help?? |
Looking at the Camel book, 3rd edn., table 5-1 on page 150, the entry for /s says "Let . match newline ... " which sort of implies that /m doesn't. So it is the treatment of the "." metacharacter that changes between the two. This with no modifying flag also matches
This might imply that the default behaviour of m/.../ with no modifying flag is the same as m/.../m. I will delve into the documentation when I get a chance. Cheers, Johngg Update: This passage is in the "perlre" manual page
In Section
Seekers of Perl Wisdom
|
|