Hi,
Nothing to do with asp.
Simply put the perl or shell script in your cgi-bin directory and create a normal link for it.
You' will have to ensure your script has the correct permissions for it to run, make sure you parse any parameters passed to stop people hacking your script and causing it to do damage to your server.
If you do a search on a popular search engine you should find some example templates that do the parsing etc.
Duncan