[664] lib/App/Prove.pm - teach Getopt::Long about error handling
Andy Armstrong
n at rciss.us
Wed Oct 3 10:05:00 BST 2007
On 3 Oct 2007, at 08:39, Eric Wilhelm wrote:
> So, Getopt::Long does local $SIG{__DIE__} = "__DEFAULT__" and then
> eval,
> and then print STDERR $@ unless the $@ is "!FINISH". This basically
> means that error propagation is impossible without a workaround.
>
> This hack means that subrefs in the options can die to stop option
> processing. While they could exit(1) if this were not an API, this is
> an API, so... It also means bad options and thrown errors are
> different.
We don't have subrefs in the options though...
--
Andy Armstrong, Hexten
More information about the tapx-dev
mailing list