Think about Loose Coupling | |
PerlMonks |
Re: regex incorrectly matching newlineby ioannis (Abbot) |
on Jun 23, 2006 at 18:50 UTC ( [id://557290]=note: print w/replies, xml ) | Need Help?? |
The regex is not matching the "\n", it succeeds by matching the 'h'
of "hello\nthere". Furthermore, even if you make the \n as
the first character of $i, by setting $i = "\nthere", the
regex will continue to succeed because it will matches the 't'.
In Section
Seekers of Perl Wisdom
|
|