The Javascript code runs on the client; the Perl script runs on the server. You can't directly do what you want.
You'll have to put the subroutines you want to call in a CGI script accessible from your webserver, and have the client request the appropriate URL in order for the CGI script to be run.
This is too much to just explain in a single reply. You'll need to look at a tutorial on writing CGI scripts. You should take a look at Ovid's excellent CGI course.
Makeshifts last the longest.
In reply to Re: JavaScript and Perl Subroutine
by Aristotle
in thread JavaScript and Perl Subroutine
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |