EvanK has asked for the wisdom of the Perl Monks concerning the following question:
Now, when I remove one certain subroutine, it gives me another error (below), but doesnt die.Missing right curly or square bracket at line 926, at end of line.
The subroutine that I remove is below, I sure hope someone can help me out...and just in case, I'll include the modules I'm using:Can't locate Term/ReadLine/Perl.pm in @INC
BEGIN {use CGI::Carp qw(fatalsToBrowser)} use Cwd; $cwd = getcwd(); $cwd =~ s/\\/\//g; sub setData { my($zero) = chr(0); my($one) = chr(1); my($two) = chr(2); open(NDAT,">$path/trivia_dat.cgi"); foreach $i (0..($n_q - 1)) { print NDAT "#"; print NDAT $INPUT{"q$i"}; print NDAT "$zero"; foreach $j (0..($n_a - 1)) { if($INPUT{"q$i-c"} eq $j) { print NDAT $INPUT{"q$i-a$j"}; print NDAT "$two"."$one"; } elsif($j < ($n_a - 1)) { print NDAT $INPUT{"q$i-a$j"}; print NDAT "$one"; } else { print NDAT $INPUT{"q$i-a$j"}; print NDAT "\n"; } } close(NDAT); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Brackets are driving me insane....
by mwp (Hermit) on Dec 30, 2000 at 00:58 UTC | |
|
Re: Brackets are driving me insane....
by epoptai (Curate) on Dec 30, 2000 at 05:15 UTC | |
|
Re: Brackets are driving me insane....
by turnstep (Parson) on Dec 30, 2000 at 01:11 UTC | |
by eg (Friar) on Dec 30, 2000 at 01:34 UTC | |
|
Re: Brackets are driving me insane....
by Trimbach (Curate) on Dec 30, 2000 at 00:59 UTC | |
|
Re: Brackets are driving me insane....
by I0 (Priest) on Dec 30, 2000 at 01:11 UTC |