http://qs321.pair.com?node_id=616544


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
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!