in reply to
BOTH STOUT and STDERR to same file.
system("/home/me/ipinfo.pl $_ >$output 2>&1");
It is very unsafe (imagine somebody writing "
; rm -rf /*
" in the input file). Try using
IPC::Run
, which does all redirections itself.
Sorry if my advice was wrong.
Comment on
Re: BOTH STOUT and STDERR to same file.
Select
or
Download
Code
In Section
Seekers of Perl Wisdom