From: Uri Guttman
Subject: Re: Is this expected in a foreach()?
Date: Fri, 09 May 2008 20:14:55 GMT

>>>>> "G" == Gowtham writes:

G> Yes, got it.
G> So, this is a feature rather than a bug/annoyance. This
G> feature is particularly useful when manipulating a very
G> large list.

s/a very large//;

aliasing in for is very useful in many things. among other things it
also speeds up the loops as only aliases need to be made and not copies
of all the data. the length of the list is not a factor in the
usefulness of this feature.

uri

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