http://www.perlmonks.org?node_id=991509


in reply to BOTH STOUT and STDERR to same file.

system("/home/me/ipinfo.pl $_ >$output 2>&1");
This will overwrite output file in while loop.
What if you append the output?
system("/home/me/ipinfo.pl $_ >> $output 2>&1");

Replies are listed 'Best First'.
Re^2: BOTH STOUT and STDERR to same file.
by hmb104 (Sexton) on Sep 03, 2012 at 20:21 UTC

    All I needed was to append instead of re-write my lines. Thanks for the help :).