squeeky has asked for the wisdom of the Perl Monks concerning the following question:
sub recordVote { my $question_id = $_[0]; my @qlist = ""; my $i = 0; foreach $i (0..4) { $qline ="$id[$i]|$question[$i]|$answer1[$i]|$answer2[$i]|$tally1[$ +i]|$tally2[$i]\n"; push @qlist, $qline; } #print "<!--\@qlist is:\n@qlist-->"; open (POLLWRITE,"+< D:/Inetpub/wwwroot/j14/include/special_poll.tx +t") or die "couldn't open poll file"; print POLLWRITE @qlist or die "Couldn't write to poll file" +; close(POLLWRITE) or die "Couldn't close poll file aft +er writing"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(ar0n) Re: write to textfile
by ar0n (Priest) on Apr 09, 2001 at 06:21 UTC | |
|
Re: write to textfile
by Albannach (Monsignor) on Apr 09, 2001 at 08:36 UTC | |
|
Re: write to textfile
by BMaximus (Chaplain) on Apr 09, 2001 at 08:37 UTC |