Both system(...) and exec(...) will work, but with openning up of the output file at the end of the perl script, I will favour exec(...) over system(...), because it exceute a system command and never returns to the original process.
check perldoc -f exec for more details
In reply to Re: open output files
by 2teez
in thread open output files
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |