print urlencode("41 + 1 = 42"); # 41 1 = 42 use URI::Escape; print uri_escape("41 + 1 = 42"); # 41%20%2B%201%20%3D%2042