On Wed, Oct 03, 2001 at 11:01:48AM +0530, [EMAIL PROTECTED] wrote:
> so my earlier effort was basically to find out how we can capture the
> output of "eval($temp)" into a Perl variable, ...this variable could later
> be taken from the Perl stack ,converted into a C string and sent through
> the pipe to the Xterm...............This $temp can contains any perl
> command.

The output of eval($temp) is returned.  You mean you want to get all of the
data printed to STDOUT.  They're two different sources of data.

Given that you already have a filehandle you want to print to (the pipe) you
can simply open STDOUT on that pipe.  You can either do this from C, or you
can prefix each eval statement with Perl code to do it.  See perldoc -f open
for information on opening a filehandle onto an existing handle or file
descriptor.


Michael
--
Administrator                      www.shoebox.net
Programmer, System Administrator   www.gallanttech.com
--

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to