my $pjx = CGI::Ajax->new( first => \&foo, second => \&bar, ## keep adding functions here ## unique names of course );