>>>>> "Chas" == Chas Owens <[EMAIL PROTECTED]> writes:

Chas> On 12 Jun 2001 11:32:46 -0700, Randal L. Schwartz wrote:
Chas> <snip /> 
>> For this, I much prefer:
>> 
>> s/foo/bar/ for @new = @original;
>> 
>> And it's even less typing!
Chas> <snip />

Chas> Could you break this down into English?  

Copy @original to @new
for each element of @new (aliased to $_):
  replace foo with bar

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

Reply via email to