Does the output from the scripts go into a file or does the output print to the screen(standard out)? If it goes to a file then you need to open the file and read the info. If it goes to standard out you can do something like this to get the ouput.
@info=`/home/my/directory/<scriptname>` (the backtick not the single quote) I think this will take standard output from that script and put each line of code into the array @info. Hope this helps Newbie... On Monday 26 July 2004 12:38 pm, jason corbett wrote: > Hello. I would like to use the shell to run SQL scripts or PL/SQL scripts > written by co-workers. These scripts are useful and I don't need to do > re-work so I am trying to use them in my perl script where i can retrieve > the data that results from running them into a $scalar, @array, or %hash. I > cannot seem to GET the values/or variables to be stored into a perl > variable that I created. Can anyone help me do this? I actually have it > where I call a sub routine that goes out and runs the script, but I am not > able to get the data when I return from the shell. > > Thanks, > JC -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>