in reply to sqlplus or DBI

I am currious to see the script as generally you should not need to do that

try :-

$/='/'; while (<FILE>) { # process and return errors }
This assumes you are seperating your commands with '/' execution which is usual in oracle.

Hope this helps
UnderMine