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:nnorman@incanus.net http://incanus.net/~nnorman
Attachment:
pgpftesj2pAgx.pgp
Description: PGP signature