LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   problems opening perl files (https://www.linuxquestions.org/questions/linux-software-2/problems-opening-perl-files-45977/)

rhuser 02-18-2003 08:41 AM

problems opening perl files
 
i am tryin to run a basic perl file. this is what i done:

----------------------------
% my $planet = "World";
Hello, <% $planet %>!
-----------------------------

i saved the file as first.pl
i told the system that the file is excecutable:
chmod +x first.pl

i tried to open the file in Internet Explorer, and i got the content of the file:

http://134.36.16.12/perl/first.pl

i checked that httpd.conf includes the
LoadModule perl_module modules/mod_perl.so
PerlModule /usr/lib/httpd/modules

when i type $ perl - v
i get

Tinkster 02-18-2003 01:49 PM

I'm not a HTML guru. but to my understanding
you'd call a Perl-script from a cgi file, not by
loading it into a browser as such?

Cheers,
Tink

acid_kewpie 02-18-2003 02:15 PM

http://www.linuxquestions.org/questi...threadid=45978

do not ask a question more than once.


All times are GMT -5. The time now is 10:51 PM.