P
paraagv
Hi have a perl application in on suse64 bit OS, which internally
redirects STDOUT to a $variable
using
This redirects STDOUT to a variable
open OUT ,'>',\$variable
*STDOUT = *OUT
Now when run the tool
e.g ./app <test>.txt > out.txt
The application has two parts
1. returns all text data in the <test> input as is to STDOUT
2. returns function call with return values also to STDOUT
Now what happens is that category 1 collects in out.txt
while category 2 collects in the $variable
my question is why does STDOUT get split into 2 places and how can I
avoid it - I want all to goto the variable
Thanks
Paraag
redirects STDOUT to a $variable
using
This redirects STDOUT to a variable
open OUT ,'>',\$variable
*STDOUT = *OUT
Now when run the tool
e.g ./app <test>.txt > out.txt
The application has two parts
1. returns all text data in the <test> input as is to STDOUT
2. returns function call with return values also to STDOUT
Now what happens is that category 1 collects in out.txt
while category 2 collects in the $variable
my question is why does STDOUT get split into 2 places and how can I
avoid it - I want all to goto the variable
Thanks
Paraag