terça-feira, 31 de maio de 2011

Perl: How to capture STDOUT and the exit code

Capture the exit code but not STDOUT:
$status = system("command");

Capture STDOUT but not exit status:
$output = `command`;

Nenhum comentário:

Postar um comentário

Drunk Penguins

Drunk Penguins
Drunk Penguins