Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Question on inline redirection

by JavaFan (Canon)
on Apr 28, 2012 at 22:59 UTC ( [id://967875]=note: print w/replies, xml ) Need Help??


in reply to Question on inline redirection

Considering that you are familiar with the Korn shell, there's no reason to give up on that knowledge. Use nested here documents, one in Perl, the other in the shell (untested code):
my $output = <<`EOT1`; sqlplus.exe -s uid/pwd\@myserver <<EOT select * from emp; exit EOT EOT1 ... do something with $output ...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://967875]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-03-29 05:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found