in reply to PERL: newlines truncated from sqlplus output in perl
In addition to what haukex said, is there a reason you're not doing everything from one perl script? Work with Oracle in a sane manner with DBI/DBD::Oracle.