in reply to Re: Can you read a false value from a file?
in thread Can you read a false value from a file?
Ah, so a string with a trailing newline will never be false, but it's possible that the last line of the file won't have the trailing newline. So, without the defined( ... ) I might fail to process the last line But even then, my $line = <FH> will still return true.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Can you read a false value from a file?
by converter (Priest) on Feb 11, 2006 at 10:06 UTC | |
Re^3: Can you read a false value from a file?
by ikegami (Patriarch) on Feb 11, 2006 at 09:58 UTC | |
by grantm (Parson) on Feb 11, 2006 at 10:03 UTC | |
by bart (Canon) on Feb 11, 2006 at 13:42 UTC |