RE: Problem testing variable

2002-04-05 Thread Balint, Jess
You may want to cycle through the file, line by line: while(){ chomp; if( . . . } } That should do it. -Original Message- From: Glenn Cannon [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 3:57 PM To: [EMAIL PROTECTED] Subject: Problem testing variable

Re: Problem testing variable

2002-04-05 Thread Agustin Rivera
chomp($winner) before your if statements. or do if ($winner eq "na\n") Agustin Rivera Webmaster, Pollstar.com http://www.pollstar.com - Original Message - From: "Glenn Cannon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 05, 2002 12:56 PM Subject: Problem testing va

RE: Problem testing variable

2002-04-05 Thread Nikola Janceski
most of the time... when a file is closed, even it's one line, a newline character is appended if there isn't one. replace: $winner = ; with : chomp($winner = ); and you should be good. > -Original Message- > From: Glenn Cannon [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 05, 2002