in reply to Getopt::Long return value

Found this in perldoc Getopt::Long. Doesn't seem to be backed up by what you've found tho'.

Return values and Errors

Configuration errors and errors in the option definitions are signalled using die() and will terminate the calling program unless the call to Getopt::Long::GetOptions() was embedded in eval { ... } or die() was trapped using $SIG{__DIE__}.

A return value of 1 (true) indicates success.

A return status of 0 (false) indicates that the function detected one or more errors during option parsing. These errors are signalled using warn() and can be trapped with $SIG{__WARN__}.

Errors that can't happen are signalled using Carp::croak().

--
<http://www.dave.org.uk>

Perl Training in the UK <http://www.iterative-software.com>