in reply to Re: Help already received and request for more
in thread Keeping form information in CGI
just a heads up...
open ORGIDATA, ">orig" || die "Couldn't open! $!"; for (my $k = 0; $k < @classid; $k++) { if ($classid[$k] != $classid[$k-1]) { print $classid[$k], " ", @{$class[$k]}, " ", $location +[$k], " ", $credits[$k], "<br>\\ n"; } } close ORGIDATA;
if the print within the loop is supposed to output to the "orig" file, then you'll want to use the file handle in the print statement:
print ORGIDATA $classid[$k], " ", @{$class[$k]}, " ", $locatio +n
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Clarification and reiteration
by deryni (Beadle) on Jul 04, 2001 at 00:42 UTC | |
by wardk (Deacon) on Jul 04, 2001 at 02:04 UTC | |
by deryni (Beadle) on Jul 04, 2001 at 12:43 UTC | |
by wardk (Deacon) on Jul 05, 2001 at 19:19 UTC |