$string =~s /($string_1)(.*?)($string_2)/$3$2$1/gs;
Should work, as far as I can see...
cLive ;-)
In reply to Re: how do I swap 2 strings in a file?
by cLive ;-)
in thread how do I swap 2 strings in a file?
by babyconejo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |