CGI::WML is a Perl module with subclass LDS's "CGI.pm" for WML output and WML methods.
$query = new CGI::WML;
$content = $query->p("Hello WAP world");
($page_title,$content) = $query->html_to_wml($buffer);
This is a library of perl functions to allow CGI.pm-style programming to be applied to WAP/WML. Since this is a subclass of Lincoln Stein's CGI.pm all the normal CGI.pm methods are available. See perldoc CGI if you are not familiar with CGI.pm