# We don't need that. It's just wrong: my $errorlog=''; if (...) { warn 'Oops'; # Oh, by the way: Unless you add "\n", you will see file and line in the log. } if (...) { warn 'Oh noes'; } foo(...); if (...) { warn 'Outch"; } say "All done, bye.";