in reply to & url question
use Tie::UrlEncoder; print "mycode.pl?param=first&second=name&details=" . $urlencode{"items&things"} . "&other=more"; #mycode.pl?param=first&second=name&details=items%26things&other=more [download]