The simple answer to your question is no. The way to detect for JavaScript is JavaScript. For instance:
- Code a page that sets a cookie in javascript and then redirects them to the page with your perl script.
- Display your perl functionality only if the cookie is present.
For more info, see Danny Goodman's
Detecting A JavaScript Client
EDITORIAL
Personally, this is not something that I would do. I find it much nicer to provide functionality to visitors that don't want to use JavaScript. Most things done with JavaScript are best left to porn websites.