Click to See Complete Forum and Search --> : How do I/Can I compile perl and run it from my CGI-BIN?


boredcrazy
04-05-2001, 10:56 AM
I've got Corel Linux and Apache.

I've written a bunch of scripts and I was wondering if it would be possible to compile the code and still be able to run it from my CGI-BIN.

This way, I could distribute it and still keep my source code hidden.

If so, how would I (Newbie) go about doing this? How do you compile perl in linux? :confused:

tiw
04-05-2001, 11:09 AM
Perl is a scripting language, it runs though the perl interperter. I am pretty sure you can not compile perl code. If you really want to have your code hidden, make your cgi's in C. I actually prefer using C instead of using perl, but thats just me

Once-Ler
04-07-2001, 04:26 AM
its been a long while since i've done any perl... i need to learn up on it... but I think after you have written the code... you chmod +x or chmod 777 and to run it: ./filename. If your trying to run it in the browser just type in the path name to it ending in .pp or is it .ppl

I hope this helps
-Will

Once-Ler
04-07-2001, 04:27 AM
its been a long while since i've done any perl... i need to learn up on it... but I think after you have written the code... you chmod +x or chmod 777 and to run it: ./filename. If your trying to run it in the browser just type in the path name to it ending in .pp or is it .ppl

I hope this helps
-Will

bdl
04-07-2001, 01:17 PM
Originally posted by boredcrazy:


This way, I could distribute it and still keep my source code hidden.



I take it you just arrived from the land of M$.

:D