in reply to how do I swap 2 strings in a file?
$string =~s /($string_1)(.*?)($string_2)/$3$2$1/gs; [download]
Should work, as far as I can see...
cLive ;-)