use strictures; use CGI ":standard"; use HTML::Entities; # Called https://mysite/cgi-bin/rpc.pl?args=to;the=call my $explicitly_scalar_param = param("args"); my $the = param("the"); print header(), start_html("Title..."), h1("header"), div("Do something safely with", encode_entities($explicitly_scalar_param), "and", encode_entities($the)), end_html; # Test on command line: ./rpc.pl 'args=to;the=call'