# Perl CGI script: use myPackage; ### CGI Object ### my $cgi = new CGI; ### Ajax Object ### my $pjx = new CGI::Ajax( 'exported_func1' => \&exported_func1_code, 'exported_func2' => \&exported_func2_code, ); print $pjx->build_html($cgi, \&Show_HTML); sub exported_func1_code{ my $commentsobj = new myPackage(); ## some code that works.. (not package problem) ## this returns the data to "showContextMenu" ## and I can actually see the pop up.. $someHTML = "