There is another option, one which was brought up in the Chatterbox recently. The IPC::Open3 module will automate much of option 2; but is more complex than option 1.
The choice is essentially between ease of implementation and need to keep stdout separate from stderr. Since stdout seems to be completely empty in this case, I would choose option 1, which is also the easiest to implement.
In reply to Re: Re: System Calls with backticks
by kal
in thread System Calls with backticks
by Mac
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |