in reply to Why doesn't my browser open perl scripts correctly?

If you are trying to learn cgi, I recommend getting Indigo Perl. It comes with a built in version of Apache, which you can use to test CGI scripts (make sure that your scripts are in the cgi-bin!). Just dl, install, and run the Perl Console executable to start the web server.

Also, since you are on a windows machine, you should be able to drag-drop perl programs onto the Perl executable. Just go to the bin directory, and drag your .pl file onto perl (a yellow icon with indigo perl). Nice and easy :)

Good luck with learning perl!

Replies are listed 'Best First'.
Re: Re: beginner
by Anonymous Monk on Aug 30, 2001 at 01:36 UTC
    Thanks jryan, It seems that the first line "/usr/bin/perl" is not working I need a direct path to the perl.exe (this is not on the server yet). What do you suggest??? The perl.exe file is in d:\perl\bin directory. What is the appropriate way to approach this. Regards, Nick

      On windows machines, #!perl is almost always the correct path to put at the top of your scripts.

      If you are on a linux box, type: whereis perl. That will tell you the correct path to perl.

      Post your code! Don't be shy!

      (Maybe it's something obvious someone will spot at once - e.g. if the first line actually is /usr/bin/perl that's maybe the problem as it wd usually be something like #!/usr/bin/perl)

      § George Sherston