### link js func to perl func my $cgi = new CGI(); my $pjx = new CGI::Ajax('test' => \&testAjax); ### perl func sub testAjax { return( @_ ); }