Subject: | missing newline in output message |
Date: | Wed, 20 Aug 2008 18:13:40 +0300 |
To: | bug-autodie [...] rt.cpan.org |
From: | "Offer Kaye" <offer.kaye [...] gmail.com> |
Hi,
When I try the basic:
use autodie;
open(my $in_fh , '<' , 'infile');
With 'infile' not existing, the error message that I get is not
newline terminated, which is annoying. I realize I can do:
use autodie;
my $in_fh;
eval {
open($in_fh , '<' , 'infile');
};
die "$@\n" if $@;
But that's a lot of extra code just to get a "\n" at the end of the
message (and that kind of defeats for me a major reason to use
autodie).
Can a "\n" be added by default to the autodie default message?
I'm using autodie 1.99 on Perl 5.10.
Thanks,
--
Offer Kaye