If you don't mind spending a few more bytes, then I'd always include the file name in the message:
my $data = do { open my $fh, '<', $file or die "'$file': $!"; local $/; <$fh> };In reply to Re: Any downsides to this slurp idiom?
by haj
in thread Any downsides to this slurp idiom?
by haukex
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |