$ perl5.9.5 -E 'say "match" if "f\n" ~~ /.*\z/' match
In reply to Re^3: Strange regex to test for newlines: /.*\z/ by moritz in thread Strange regex to test for newlines: /.*\z/ by betterworld