in reply to Re: Grep is changing the original list?
in thread Grep is changing the original list?

Well, I'd venture instead that it's because it's that way for foreach, and it's that way in foreach so that we can stay efficient. Better a reference than a copy.

-- Randal L. Schwartz, Perl hacker

  • Comment on Re: Re: Grep is changing the original list?