in reply to avoid by pass of web interface

Move your secondary perl script outside of docroot or cgi-bin of your web server. Then, your script will only be accessible by the web interfaces that you design.

- Miller