> If the code for $script is being generated by the foo() subroutine, then 
> why are you not just eval()ing on the spot?
> 
>     {
>         $script = foo();
>         $output = eval{ $script } or
>             die "Couldn't eval code: $script\n$!\n";
>         do_something($output);
>     }

I am sorry for having created the confusion.
foo() returns the filename  of the script 
so it is something like 

$script_filename=foo();
$output=`perl $script_filename $arg1 $arg2`;
......

Now can I do this  without a diff interpreter. would you suggest I read
the file into a string and eval it 

Thanks
Ram




----------------------------------------------------------
Netcore Solutions Pvt. Ltd.
Website:  http://www.netcore.co.in
Spamtraps: http://cleanmail.netcore.co.in/directory.html
----------------------------------------------------------

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to