One subtlety with die (and warn)
but with a trailing newline
die
"Can't open log file
\n
"
;
outputs:
Can't open log file