# New Ticket Created by Soun Tran # Please include the string: [perl #24498] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=24498 > Dear Sir/Madam, The codes below did not work on Perl v5.8.1 on Windows NT. But the same code work on perl v5.6.1 on Windows NT. #!/usr/local/bin/perl use POSIX; use Net::FTP; use File::Copy; use File::Path; open(ORA, "|sqlplus -s DB_MAIN/DB_MAIN\@DBDEV01") or die "Unable connect to the database !!!"; print ORA "set echo on"; print ORA "spool qqq.txt;"; print ORA "select sysdate from dual;"; print ORA "spool off"; print ORA "exit"; close(ORA); Regards, Soun __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfreeThread Next