$1[0] = "Ut"; $2[0] = "abcd<Utly>"; foreach $thing(@1) { foreach $thing2(@2) { if($thing2 =~ /\s*<$thing\s*>/) { $thing2 =~ s/$thing/$thing/; } } }
In reply to replacing strings using reg exp by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |