Help for this page

Select Code to Download


  1. or download this
    my @cmd = ('someprog', 'somearg', 'anotherarg');
    my $msg = qx/@cmd 2>&1/;
    
  2. or download this
    if ($?) {
    # error occures
    # do whatever
    }