Help for this page

Select Code to Download


  1. or download this
    use POSIX();
    system( @cmd );
    my $child_exit_status = POSIX::WEXITSTATUS($?);
    
  2. or download this
    use System::Command;
    my @cmd = qw( true );
    my $cmd = System::Command->new( @cmd );
    $cmd->exit();      # exit status