First, I'd like to know why you would want to compile this program? I cannot test it on my machine, since perlcc and my HP-UX cc (or to be exact cpp) don't like to cooperate at the moment and I don't have to time to figure out why. But I've got an idea: Perhaps you should try to also compile CGI.pm (and other modules that your script requires). But this is only a feeling. Perhaps you should wait for someone who has more experience with perlcc. This shouldn't be hard, since I have zero experience with it ;-)

Sorry I can't help you with your real problem, but I still don't see the need for compiling the script.

In Reply To

...the purpose is to hide the source...

If your server is configured correctly, no one else but you should be able to see the code. If someone could break such a well configured system, he'd be happy with the compiled code, too ;-)

In Reply To

...and reduce start up time of those cgi program.

I don't think you'll be able to reduce the startup time significantly, because the compiled scripts become *very* large executables (at least that's what I've seen: a 'hello world' compiled into a one meg executable; only seen it, didn't figure it out myself). If it's speed you want, try to use mod_perl for Apache, which reduces the overhead of running the Perl interpreter all the time, or (if it's really neccessary) write your CGI application in C. Isn't an answer to your question, hope it helps anyway...