Actually, its something YOU need to tell your server, so it knows where perl is

the #! is called a shebang and basicly tells your computer where to find perl

an example

#!c:\perl\bin\perl is what you should type if you installed perl on a wintendo
in c:\perl (bin\perl is simply perls subdir to put the interpreter)

so: #!your\path\to\perl will tell your machine what it needs to know...
especially important for .cgi scripts and the like!

Regards,

Jos Boumans

Kevin Williams wrote:

> I'm just starting out and I've come across a line of code that no book seems
> to explain. Its seems that I should put #!/usr/local/bin/perl at the start
> of every script but it doesn't work for my script. How do I find out what
> the correct line should be? I'm writing a guest book so is it something that
> my server would need to tell me?

Reply via email to