# main pm file use ajax; hello(); #### #ajax.pm sub hello { print "hello\n"; }