LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   newbie to html/perl/apache needs help (https://www.linuxquestions.org/questions/linux-software-2/newbie-to-html-perl-apache-needs-help-25435/)

doublefailure 07-09-2002 06:03 PM

newbie to html/perl/apache needs help
 
hi

i just want to make a little web site for me
and want to learn perl language( i wished i could learn python though)

there seems like three ways to use perl in apache
cgi
mode_perl
embededPerl

which one is most close to perl syntax? or anything will do for learning perl?
i don't care about web-server's performance..

and i'm having trouble with html form
how can i send "variables" to *.pl so that it can process it?

thank you

pickledbeans 07-09-2002 06:41 PM

cgi and mod_perl kind of accomplish the same task,
You perl cgi is called as perl script.

embededPerl on the hand allows you to "embed" perl
in you html kind of like ASP or PHP

One other note mod_perl is compiled into the apache which
means you not calling it from outside.

doublefailure 07-09-2002 06:46 PM

so just for learning purpose,
(to be as close as just normal perl script)
mod_perl/ cgi are same on that aspect?

(i 've never done cgi scripting =) )

pickledbeans 07-09-2002 06:53 PM

Quote:

Originally posted by doublefailure
so just for learning purpose,
(to be as close as just normal perl script)
mod_perl/ cgi are same on that aspect?

(i 've never done cgi scripting =) )

If you use mod_perl you still using a "cgi " script.
The difference is mod_perl compiles the Perl interpeter
into Apache, instead of calling it from the OS with:
#!/usr/local/bin/perl


BTW, Perl and CGI are to compertely different beast.
You can write "cgi" script in any language that you please
:confused:

rverlander 07-09-2002 08:13 PM

mod_perl, embperl and cgi are not 'ways' to code perl.

You code perl in Perl not perl in mod_perl.
mod_perl is to write apache modules in perl.

pickledbeans 07-09-2002 08:26 PM

Quote:

Originally posted by rverlander
mod_perl, embperl and cgi are not 'ways' to code perl.

You code perl in Perl not perl in mod_perl.
mod_perl is to write apache modules in perl.

rverlander, what did you think about my comment about
cgi and Perl being two seperate beast :)


All times are GMT -5. The time now is 09:39 AM.