on Thu, 02 May 2002 19:10:48 GMT, Tor Hildrum wrote: > Here is the code: > while (@arrangement) { > chomp; > if ($_ eq $epost) { my $test = 1; } > shift(@arrangement); > } > if ($test) { > ## Some more Code. The if statement always fails :(
Although you 'shift @arragement;' now, you don't shift it into $_. You should write $_ = shift @arrangement; before the 'chomp'; Further, your 'my $test' is local to the if {} block, so the 'if ($test)' (probably) refers to the package global $main::test, which is not defined. > I also get this from apache: > Use of uninitialized value in scalar chomp at > /Library/WebServer/CGI-Executables/nuugsql.cgi line 95. > Use of uninitialized value in string eq at > /Library/WebServer/CGI-Executables/nuugsql.cgi line 96. I explained this in a previous post. > This will be the last one, I promise. If you have more questions, ask them. That's what this newsgroup is for. -- felix -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]