in reply to Error running test script under activeperl (was: *tips his hat*)

Update: Doh! you are right about the RTF. However the below is still useful.

try
#!usr/bin/perl -w # Above line for *nix compatability print "testing\n";

then perl test.pl at the commandline in windows.

Windows doesn't know about the she-bang line, if you have the .pl extension associated with perl, you only have to type your file name.

You also don't need the -w at the commandline in windows if you have it in the she-bang line as perl is smart enough to get the -w from the she-bang line even in windows. (at least the ActiveState perl is)

"Nothing is sure but death and taxes" I say combine the two and its death to all taxes!

Replies are listed 'Best First'.
Re: Re: *tips his hat*
by Dog and Pony (Priest) on Apr 10, 2002 at 07:02 UTC
    This is true... until you write your first CGI script and tries to run it locally with say Apache or something. Then all of a sudden that line must be there.

    The line in the example is correct (and working) for ActiveState's default installation, but as long as the web server and all is on the same drive, #!/perl/bin/perl -w will be good enough. Although I do recommend installing in C:\usr instead to fit the standard #!/usr/bin/perl -w.

    Of course, if you never ever will test your CGI's locally, you can just ignore this post. :)


    You have moved into a dark place.
    It is pitch black. You are likely to be eaten by a grue.