[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] thoughts on while(defined(EXP warnings



>>>>> "MGS" == Michael G Schwern <schwern@pobox.com> writes:

  MGS> On Tue, Mar 14, 2000 at 12:42:24AM -0500, Ronald J Kimball wrote:
  >> In perl5.005_03 and later, the two constructs are equivalent.  The magic of
  >> while(<HANDLE>) is extended to while($line=<HANDLE>).
  >> 
  >> (Note the absence of any warnings from your benchmark script.)

  MGS> 5.004_05 has the same results and no warnings.  How far back do you
  MGS> have to go before this warning comes?

5.004_04 has the warning.

there was a minor war about this and the versions waffled between
warnings and doing an implied defined when assigning to a var from <>.

so 5.004_04 had warnings. 5.004_05 had no warnings but no implied
defined. 5.005 (which subversion first did this?) has no warnings as it
had the implied defined.

muddy history as you'd expect.

uri

-- 
Uri Guttman  ---------  uri@sysarch.com  ----------  http://www.sysarch.com
SYStems ARCHitecture, Software Engineering, Perl, Internet, UNIX Consulting
The Perl Books Page  -----------  http://www.sysarch.com/cgi-bin/perl_books
The Best Search Engine on the Net  ----------  http://www.northernlight.com

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe