Conserving memory - was SPUG: Fw: greetings

David Dyck dcd at tc.fluke.com
Mon Oct 22 11:01:52 CDT 2001


On Sun, 21 Oct 2001, Jason Lamport wrote:

> At 11:27 AM -0700 10/21/01, Jeremy Devenport wrote:
> >
> >1) You don't need to check for defined inside a while loop condition if
> >it is of the form <FILE> or $var = <FILE>. Perl does this for you.
>
> Is this true for all versions of Perl?  I seem vaguely to recall that
> this was a fairly recent (post 5.004) enhancement.  But I could be
> mis-remembering.

the file Changes5.001 in the perl source distribution indicates reports
the following patch

NETaa13486: while (<>) now means while (defined($_ = <>))
From: Jim Balter
Files patched: op.c pod/perlop.pod
 while (<HANDLE>) now means while (defined($_ = <HANDLE>)).

perldoc perlhist contains the release date for 5.001 as
   Larry   5.001          1995-Mar-13

    (Do you call 1995-Mar-13 recent? :-)


 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
      Subscriptions; Email to majordomo at pm.org:  ACTION  LIST  EMAIL
  Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
 For daily traffic, use spug-list for LIST ;  for weekly, spug-list-digest
     Seattle Perl Users Group (SPUG) Home Page: http://zipcon.net/spug/





More information about the spug-list mailing list