Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: BOTH STOUT and STDERR to same file.

by aitap (Deacon)
on Sep 03, 2012 at 19:02 UTC ( #991502=note: print w/replies, xml ) Need Help??


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.