in reply to Re^2: How to handel sqlplus error in perl script.
in thread How to handel sqlplus error in perl script.

Write like this
open my($filehandle) ... run ... $filehandle

Replies are listed 'Best First'.
Re^4: How to handel sqlplus error in perl script.
by Ankur_kuls (Sexton) on Dec 24, 2014 at 07:41 UTC

    Hi, I tried what you what suggested.. I also tried the below..

    open (WFH1, ">", "${basePath}/QueryResult4.txt"); run '$SQLPLUS \@${basePath}/VoucherQuery4.sql $startdate', \*WFH1;

    These are not throwing any error but not able to write on the output file.. could you please extend your help? sorry for sounding dumb and confused.. :)