|Think about Loose Coupling|
Re: NEWBIE Brain Teaserby kha0z (Scribe)
|on Apr 15, 2001 at 01:09 UTC||Need Help??|
Update:I understand what is going on now. Thanks for the clarification kundra.
Another Update:I just want to make sure that I understand this. In the "foreach" loop $each is assigned a reference to a scalar value in @list. So when $each is modified in the loop what is actually being modified is $list[$i] which happens to be same value as $newlist[$i]. Right?