Code: ( text ) C:\>test_string_replace2.pl "-----\\-----" The resulting value is : -----\\-----