autodie::exception::system(3perl)

autodie::exception::system3perl

Exceptions from autodying system().

Usage

    eval {
        use autodie qw(system);
        system($cmd, @args);
    };
    if (my $E = $@) {
        say "Ooops!  ",$E->caller," had problems: $@";
    }

Overview

This is a autodie::exception class for failures from the "system" command.

Presently there is no way to interrogate an "autodie::exception::system" object for the command, exit status, and other information you'd expect such an object to hold. The interface will be expanded to accommodate this in the future.

stringify

When stringified, "autodie::exception::system" objects currently use the message generated by IPC::System::Simple.

Releases

9 releases since Debian 6.0 (Squeeze); the text changed 8 times.

  1. 6.0
  2. 7
  3. 8
  4. 9
  5. 10
  6. 11
  7. 12
  8. 13
  9. Arch

License

Copyright (C)2008 Paul Fenwick

This is free software. You may modify and/or redistribute this code under the same terms as Perl 5.10 itself, or, at your option, any later version of Perl 5.

Author

Paul Fenwick <[email protected]>

From perl 5.44.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.