Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Perl - Newbie question

Re: Perl - Newbie question

From: Mladen Gogala <gogala_at_sbcglobal.net>
Date: Thu, 08 Jun 2006 16:09:40 GMT
Message-ID: <44884BF2.6090206@sbcglobal.net>


Jerome Vitalis wrote:
> On Wed, 07 Jun 2006 17:40:43 +0000, Mladen Gogala wrote:
>
>

>> Of course, you can try with
>>
>> open FH,"|sqlplus login/password";
>> print "select * from all_objects;\n";

>
> It should read:
> print FH "select * from all_objects;\n";

You're correct. I apologize for the inconsistency. Of course, one should print to the handle just opened.

>
> And if the OP wants to process the output (just a guess), he'd better use
> IPC:Open2 instead of open().

Personally, I prefer IPC::Cmd, but he's complaining about the complexity of DBI. Let's not go overboard.

-- 
Mladen Gogala
http://www.mgogala.com
Received on Thu Jun 08 2006 - 11:09:40 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US