Is it possible to search and replace values that are stored in an array. Such as PHP's preg_replace function.
I want to have an array of values like:
@search = ("red", "orange", "blue");
@replace = ("yellow", "black", "green");
and be able to =~ s/$search/$replace/ig.
Is this possible? Thanks!