In the previous question, SearchigPerl says that his perl scripts just download instead of getting executed on the web server. This got me thinking...
if your scripts process online payments or perform some encryption or some secretive stuff, it would be a nightmare scenario if your server allowed people to see your perl source instead of executing it!
My question is how can a perl programmer avoid something like that? Is there a way to make sure that a page stays hidden in case it gets downloaded? For example, I tried to put a null character as the first byte in one of my scripts to make sure that the rest of the data will not download or stays hidden in case it doesn't get executed by the server. But it turns out I get a 500 Internal Server error when I try to execute my script. The server doesn't like when a perl script starts with a null character. Lol
Of course, I could try to obfuscate my perl script, but that's not a really foolproof idea. If someone really wanted to figure out what my script does, and they've got my source code in hand, it's just a matter of time before they figure out what it does.