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