Call a perlsub with a link

Compaq ?
December 31, 2009 at 18:23:02
Specs: Windows 98, ?
Hi, I would like to be able to call a perl sub with an html href link.
print "<a href=\"&func\">Click here</a>";
The "&func" is the function I want to call. The "print "Click here" and the "&func" would both be held in the same file, How do I do this?

See More: Call a perlsub with a link

Report •

January 1, 2010 at 05:37:24
You can't call/execute a Perl subroutine from an html link without calling/executing the Perl script

Your link needs to specify the full url of the Perl script that you want to execute and that url can include a get parameter which specifies the sub you want executed. The Perl script could use a dispatch table which executes the desired sub.

Report •

January 7, 2010 at 17:36:50
Oh, ok. thnx

Report •
Related Solutions

Ask Question