in reply to Simply Too Slow Find and Replace
foreach $pair ( @pairs ){ ($key,$value) = split (/=/, $pair); chomp ($value); $s{lc $key} = $value; } foreach $name ( @names ){ $name =~s/(\s(\w+))/$s{lc $2}||$1/ieg; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Simply Too Slow Find and Replace
by samtregar (Abbot) on Jun 03, 2002 at 05:06 UTC |
In Section
Seekers of Perl Wisdom