I'm not sure if/why eval works/don't work.
But I believe
        $results = `perl $script`;
can give you what you want....
Do note the that 'quotes' are back-ticks
(normally left of 1 on a qewrty keyboard)

Alan Swan.


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf
> Of Mike Kangas
> 
>     I have a perl script that reads in other perl scripts. After it
> reads the script the original runs the new script through eval().
> Essentially what I want to happen is this. $results = eval $script; to
> capture all the STDOUT as if it were a system call. But this does not
> work. I am going to try and tie the STDOUT filehandle and create a
> string out of everything the would normally get put to STDOUT. I belive
> this will work once I get it going but would like to know if anyone have
> any better solutions.
> 
> The only restriction I am putting on myself is that this redirect does
> not require the use of a flat file.


---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
         [EMAIL PROTECTED]
For non-automated Mailing List support, send email to  
         [EMAIL PROTECTED]

Reply via email to