in reply to Frontpage 2000 and CGI

Perl is not like javascript or php... your browser does not run the program. Instead, you need to have a web server somewhere. (either on your machine or a remote machine). I haven't used windows in a while but I imagine it shouldn'e be too hard to install apache: http://www.apache.org/ and then that would give you a cgi-bin/ directory to put your scripts in. Then you would point your browser to something like http://localhost/cgi-bin/perlscript.pl

The other thing you can do for testing purposes, is run your program and save the output to a file. In unix you would do: "./perlscript.pl > output.html" and then open up output.html in a browser. I'm not quite sure how to do it in windows. Maybe someone who uses windows can help you there.

Replies are listed 'Best First'.
Re: Re: Frontpage 2000 and CGI
by Cody Pendant (Prior) on Feb 04, 2004 at 01:31 UTC
    Perl is not like javascript or php... your browser does not run the program.

    Huh? Your browser runs PHP?



    ($_='kkvvttuubbooppuuiiffssqqffssmmiibbddllffss')
    =~y~b-v~a-z~s; print
      well the browser doesn't "run" the php but it is imbedded into your html file. (quite unlike perl where it is in a /cgi-bin/ directory)