On Thu Apr 15 08:55:39 2010, clonezone wrote:
Show quoted text> On 4/15/10 3:53 AM, Jari Aalto via RT wrote:
> > "die" used instead of "croak" at line 4, column 24. See page 283 of PBP.
> >
> > 1 #!/usr/bin/perl
> > 2 use strict;
> > 3
> > 4 eval "use Pod::Man" or die "$!"
>
> Certainly looks like a true positive to me.
I quote from the POD from P::C::P::ErrorHandling::RequireCarping:
=head1 BUGS
This should not complain about using C<warn> or C<die> if it's not in
a function, or if it's in C<main::>.
A proposed fix, compatible with the above POD, was committed as SVN
revision 3799. Note that a bunch of the tests got 'package' statements
added, since 'die' is now OK in main::.
Actually, thinking about the code I committed, I implemented 'not in a
function _and_ in main::', not _or_. The Changes file and the commit
comment document it this way. Elliot/Jeffrey - please let me know if
this should become 'or'. Or do it yourselves - it's a two character change.
Tom
Tom