>>>>> "R" == Ruud  <rvtol+use...@isolution.nl> writes:

  R> Jeff Peng wrote:
  >> so how about while (my $line = <FILE>) instead of using $_?

  R> Evil! An empty line, or a line with only a "0" in it.

empty lines (a single newline) is always true. the defined case only
handles the odd trailing partial line with just '0' in it. it is the
only way a <> without defined would lose some data as it is false.

uri

-- 
Uri Guttman  ------  u...@stemsystems.com  --------  http://www.sysarch.com --
-----  Perl Code Review , Architecture, Development, Training, Support ------
---------  Gourmet Hot Cocoa Mix  ----  http://bestfriendscocoa.com ---------

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to