> From: Felix Geerinckx <[EMAIL PROTECTED]> > Date: 2 May 2002 19:32:36 -0000 > To: [EMAIL PROTECTED] > Subject: Re: Another MySQL. > > 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.
Yup, and you guys haven't failed me yet. Got my first 100+ liner CGI-script to work :) Not bad for a newbie. :) Heck, I even learned a couple of things during the processes. Thanks :) Tor -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]