On Sat, Sep 02, 2000 at 06:53:46PM -0500, Will Trillich wrote:
> > So zero makes the condition '$char = getc(INPUT)' evaluate to false, dumping
> > the flow down to closing the file. What's the perl equivalent of WHILE NOT
> > EOF? <g>
> 
>       while (<FILEHANDLE>) { ... }
> i.e.
>       while ($_ = <FILEHANDLE>) { munge $_; }

The truly lazy would write

  while (<FILEHANDLE>) { munge $_; }

;)

-- 
Nathan E Norman                   "Eschew Obfuscation"
email:[EMAIL PROTECTED]  http://incanus.net/~nnorman

Attachment: pgpugSfb49Wsd.pgp
Description: PGP signature

Reply via email to