- or download this
@args = ("command", "arg1", "arg2");
system(@args) == 0
...
else {
printf "child exited with value %d\n", $? >> 8;
}
- or download this
#!/usr/bin/perl
...
return $error ;
}
- or download this
$ret = check_cmd(cmd => [$config{cvs_command},'login'],
onerror => 'none',
...
unless ($ret == 0) {
# do something...
}