$temp1='http://test.com/web/main\?'; $temp2='https://test.com/web1/test1'; $proc_string =~ s/$temp1/$temp2/g;