|Do you know where your variables are?|
Re: Re: array confusionby esh (Pilgrim)
|on Aug 21, 2003 at 06:25 UTC ( #285369=note: print w/replies, xml )||Need Help??|
(Please see Update below. I'm not editing out my mistakes, but I don't want to confuse readers.)
I'm going to have to disagree with this statement. As far as I can see from the provided code, they are very close to the same.
Furthermore, I believe that the extra set of parens in your example makes no difference in the functionality. Try this for yourself:
Update: I'm now going to correct myself. I misread the original code thinking that the loop variable was being used to select the strings that were being replaced. However, the loopvariable is being used to select the strings that are being modified.
Yes! These are different. and I'll expand further, but wanted to get this correction out quickly.
-- Eric Hammond
In Section Seekers of Perl Wisdom