@b = map { m#^(.*)\.\w+$#? $1 : $_ } @a; [download]
-- Randal L. Schwartz, Perl hacker
In reply to Re: Re: Grep is changing the original list? by merlyn in thread Grep is changing the original list? by iamcal