in reply to Strange regex to test for newlines: /.*\z/
thats correct because .* matches all but the newline and
\z search for the end of the string, but there still exists
the newline
Thanks to you because I saw that /m is not necessary in my code!
http://perldoc.perl.org/perlre.html "To match the actual end of the string and not ignore an optional trailing newline, use \z ."@tinita, @betterworld:
Thanks to you because I saw that /m is not necessary in my code!
In Section
Seekers of Perl Wisdom