Error::Wait - User-friendly version of C<$?>


Error-Wait documentation  | view source Contained in the Error-Wait distribution.

Index


NAME

Top

Error::Wait - User-friendly version of $?

SYNOPSIS

Top

  use Error::Wait;

  system('/no/such/file') == 0 or die $?;   # "No such file or directory"
  system('/bin/false')    == 0 or die $?;   # "Exited: 1"
  system('kill -HUP $$')  == 0 or die $?;   # "Killed: HUP"

DESCRIPTION

Top

Error::Wait overloads the stringification of $? to provide sensible error messages. Numeric and boolean operations continue to work as usual, so code using $? >> 8 won't break.

SEE ALSO

Top

$? in perlvar, system in perlfunc, system in perlport

KNOWN ISSUES

Top

$? and the wait.h macros aren't very portable.

BUGS

Top

Please report them to the author.

AUTHOR

Top

Steve Grazzini <grazz@pobox.com>

COPYRIGHT AND LICENSE

Top


Error-Wait documentation  | view source Contained in the Error-Wait distribution.