Help-Site Computer Manuals
Software
Hardware
Programming
Networking
  Algorithms & Data Structures   Programming Languages   Revision Control
  Protocols
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac

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

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


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 $? to provide sensible error messages. Numeric and boolean operations continue to work as usual, so code using $? >> 8 won't break.


SEE ALSO

perlvar/$?, perlfunc/system, perlport/system


KNOWN ISSUES

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


BUGS

Please report them to the author.


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.

Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy