Error::Wait - User-friendly version of $?
$?
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"
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.
$? >> 8
"$?" in perlvar, "system" in perlfunc, "system" in perlport
$? and the wait.h macros aren't very portable.
wait.h
Please report them to the author.
Steve Grazzini <grazz@pobox.com>
Copyright 2003 by Steve Grazzini
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Error::Wait, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Error::Wait
CPAN shell
perl -MCPAN -e shell install Error::Wait
For more information on module installation, please visit the detailed CPAN module installation guide.