I am trying to connect to a table using SQL*Plus and fetch the data in a Perl script and store that output in a Perl variable.
In a shell script I would do this:
SQL_RESULT=`sqlplus -s ${CONNECT_STRING} << EOF
${SQLPLUS_SETTINGS}
select foo||'|'||bar ||'|'|| xyz from temp where dfg='some';
exit;
EOF`
But how can I do this in Perl?