Win has asked for the wisdom of the Perl Monks concerning the following question:
The output file is created and specified (through convention) by the file submitter, to the above output directory.system "perl 20_October_2004_K.pl G:/PUB_HLTH/Perl_program/DSR_calcul +ation/20_October_2004/Input/$job G:/PUB_HLTH/Perl_program/DSR_calcula +tion/20_October_2004/Output/$job_out";
I don’t think I can solve this problem without big changes to the code. Any ideas?my $inputfile = $ARGV[0]; my $outputfile = $ARGV[1]; open (OUTPUT_FILE, "+>>", $outputfile) or die "Unable to open $outputfile: $^E\n"; while (my @row = $sth_C->fetchrow_array) { print OUTPUT_FILE join("\t", @row); print OUTPUT_FILE "\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: System call
by Roy Johnson (Monsignor) on Dec 21, 2004 at 18:34 UTC | |
by Win (Novice) on Dec 22, 2004 at 10:40 UTC | |
by Roy Johnson (Monsignor) on Dec 23, 2004 at 00:01 UTC | |
|
Re: System call
by castaway (Parson) on Dec 21, 2004 at 15:51 UTC | |
by Win (Novice) on Dec 22, 2004 at 10:32 UTC | |
by Win (Novice) on Dec 21, 2004 at 15:57 UTC | |
|
Re: System call
by dragonchild (Archbishop) on Dec 21, 2004 at 15:52 UTC | |
by Win (Novice) on Dec 21, 2004 at 16:04 UTC |