in reply to How to run perlscript

Perl runs server-side, not client-side. Therefore, you cannot "run" your Perl scripts in a web browser -- they are run on a web server, and the output is viewed with a web browser. If this is indeed what you mean, then:

  1. Make sure your script is executable. In UNIX/Linux, this means the execute bit must be set in the permissions for the user running the web server. Something like 755 is often appropriate. Sorry, not sure what the permissions would look like on Windows.
  2. Make sure the HTML header is being printed. If you're not using CGI (which you should be, eventually), you need a script that looks something like:
    #! /usr/bin/perl print "Content-type: text/html\n\n" ; print "<H1>Hello, World!</H1>" ;
  3. Make sure your web browser is configured to run CGI scripts. You'll have to RTFM on that one. ;-)

Addendum: lisa2003, posting multiple copies of the same question is frowned upon, and duplicate or near-duplicate posts will be deleted. Please be patient and wait for the advice of your fellow monks.


_______________
D a m n D i r t y A p e
Home Node | Email

Replies are listed 'Best First'.
Re: Re: How to run perlscript
by little (Curate) on Jun 27, 2002 at 15:51 UTC
    Sorry, but PerlScript runs alike JavaScript or VBScript on the client, hence the client needs tp have ActiveState's ActivePerl installed.
    Have a nice day
    All decision is left to your taste

      I'm sure the original poster will make use of whichever advice best applies to them. I'm not convinced that `PerlScript' is precisely what they mean, both because english is likely not the poster's first language, and because the two references to `pearl' indicate to me that the poster is obviously very, very green with Perl.


      _______________
      D a m n D i r t y A p e
      Home Node | Email
        Ok, the poster of that question might not know about the differences between Perl, perl and PerlScript, but that would be just one more reason to learn it quickly :-)
        Btw. It's quite cool to do the client side scripting stuff in Perl as well, ok even if its at this state just more experimental :-) It's easier to convince people of getting the newest Macromed.. whatever plugin for their browser instead of telling em to please install the most dangerous tool namely Perl (due to its powers) on a Windows-Pc (which should fear anything except plain text).

        Have a nice day
        All decision is left to your taste