in reply to Re: To Kill a Meme: while(defined($line = <>))
in thread To Kill a Meme: while(defined($line = <>))

All of my file readings that use while loops pretty much use the syntax while(chomp($line = <FH>) already...

You aren't by any chance the author of the Perl books that are in use by HP-Education, are you? For a long time I thought that the Perl books SUN-Education made were the worst Perl books ever made, but then I got to see the HP books, full of gems like while(chomp($line = <FH>).

Abigail

Replies are listed 'Best First'.
Re: Re: To Kill a Meme: while(defined($line = <>))
by Nkuvu (Priest) on Nov 03, 2003 at 12:38 UTC

    Nope, no authorship here. Especially not for anything on Perl.

    And while I can't say that I am really happy to have provided an example of a "gem" that you think is the worst Perl ever, I do appreciate knowing that this isn't the prescribed way to do things. I've never had this bite me, but it's good to know that it has big teeth.