Also, if you're just modifying the array in-place, map is inefficient because it accumaltes the results into an array.foreach (@$arry) { my $x = join("\n", @$_); $x =~ s/^${from}$/${to}/mg; @$_ = split("\n", $x); }
In reply to Re: Fast search/replace?
by Anonymous Monk
in thread Fast search/replace?
by weingart
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |