NAME
Error::Wait - user-friendly version of $?
SYNOPSIS
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
Error::Wait overloads the stringification of $?
. Numeric operations continue to work as usual, so code using $? >> 8
won't break.
KNOWN ISSUES
$?++
and $?--
won't work correctly.
SEE ALSO
AUTHOR
Steve Grazzini <grazz@pobox.com>
COPYRIGHT AND LICENSE
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.