Click to See Complete Forum and Search --> : Where do I keep my perl file?


Zach Elfers
12-06-2002, 10:08 AM
At the top of a perl file I have, it says:

#usr/bin/perl

I have placed my perl file in the folders usr/bin/perl like it says above. I am running PWS on my computer, but when I try the script out, it doesn't work. What am I doing wrong? My PWS setting say that CGI is supported.

jeffmott
12-06-2002, 10:32 AM
#usr/bin/perl

This is the path to the Perl interpreter, not the script itself. /usr/bin/perl is the most common path on Unix machines. If you're running the script on Windows then your first line will (most likely, depends on where you installed Perl) look like this

#!c:\perl\bin\perl.exe

Zach Elfers
12-06-2002, 10:37 AM
Thanks! I don't think I have a perl interpreter. Do you know where I can download one from the internet? I am not sure if an interpreter is included in PWS.

P.S. I am running windows

jeffmott
12-06-2002, 12:04 PM
http://www.activestate.com/Products/ActivePerl/