Help for this page

Select Code to Download


  1. or download this
    sub texec {
    
    ...
        return (($@) ? [$out, $@] : $out);
    
    }
    
  2. or download this
     
    my $res = texec (10, "/usr/bin/ls", "-al", "/");
    if (ref ($res->[0])) {
    ...
        print "Command output:\n";
        print Dumper ($res), "\n";
    }