use URI::Escape; $string = uri_escape(join(' ', @ARGV));