Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!samsung!brutus.cs.uiuc.edu!psuvax1!news From: flee@shire.cs.psu.edu (Felix Lee) Newsgroups: comp.lang.perl Subject: Re: strings in boolean context Message-ID: Date: 29 Mar 90 23:57:07 GMT References: <7606@jpl-devvax.JPL.NASA.GOV> Sender: news@cs.psu.edu (Usenet) Organization: Penn State Computer Science Lines: 9 Well, the common idiom while (<>) will fail on the pathological case where a file ends with a single "0" without a terminating newline. Of course, that will never happen. I don't think making "0" true in perl is a great idea. But then, I'm more enamored with Icon's idea of success/failure. -- Felix Lee flee@shire.cs.psu.edu *!psuvax1!flee