It also leaves the exit status in $?.
see perldoc -f close for more information.
Or you can use backquotes my $output = `$myScript`; which also leaves exit status in $?.
In reply to Re: system() and output
by ctilmes
in thread system() and output
by hotshot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |