这样
use URI::Escape; print "Content-type: text/html;charset=gbk\n\n"; $str = "+ \ /"; $url = uri_escape($str); print $url;