sub run { my $cmd_out; $cmd_out = `gcc code.cpp`; $? and warn $cmd_out; print `a.out`; # Note that you had a slash in your call. $? and warn "a.out had error"; }
In reply to Re: How to use system command in perl script?
by Roy Johnson
in thread How to use system command in perl script?
by littlefishr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |