[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] <> warning



On Tue, 28 Jul 1998 10:20:45 -0400, Paul J. Schinder wrote:

>Suppose you have a
>file with a single 0 on a line by itself (I'm not sure whether a
>trailing \n "fixes" the problem or not).=20

Yes it will. "0\n" is not false. "0" is.

"" and "0" are the only strings that are considered as false. So ONLY if
a text file ends in "\n0", or if the file contains nothing but one
single "0", you can read in a "false" string before the end of the file.

=09Bart.

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch