good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Getting from Oracle to become a text fileby Rhose (Priest) |
on Oct 04, 2001 at 21:14 UTC ( [id://116770]=note: print w/replies, xml ) | Need Help?? |
I would change:
# output file $newfile = ">./batch_test.txt";
# open the new .txt file open(BATCH, "$newfile") || die "Can't open $newfile : the batch_test file. $!";
to # output file $newfile = "./batch_test.txt";
# open the new .txt file open(BATCH, ">$newfile") || die "Can't open $newfile : the batch_test file. $!";
and print $newfile; print "\n";
to print BATCH $_,"\n";
In Section
Seekers of Perl Wisdom
|
|