in reply to Run Perl function using href
Yes, its possible, use CGI
no webserver(apache)? no problem! test .cgi with Plack/plackup