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
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
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