LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-09-2002, 07:03 PM   #1
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Rep: Reputation: 30
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
 
Old 07-09-2002, 07:41 PM   #2
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 31
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.
 
Old 07-09-2002, 07:46 PM   #3
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Original Poster
Rep: Reputation: 30
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 =) )
 
Old 07-09-2002, 07:53 PM   #4
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 31
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
 
Old 07-09-2002, 09:13 PM   #5
rverlander
Member
 
Registered: May 2002
Distribution: A few
Posts: 488

Rep: Reputation: 30
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.
 
Old 07-09-2002, 09:26 PM   #6
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 31
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with perl module for w3c validator to work on my local Apache+PHP+perl instal tbamt Linux - Software 0 12-16-2004 06:37 PM
Parsing HTML using Perl smaida Programming 2 05-29-2004 02:20 PM
cgi perl : I cant get perl to append my html file... the_y_man Programming 3 03-22-2004 06:07 AM
chrooting apache v2 (php, ssl, perl support) ; perl configuration markus1982 Linux - Security 3 01-26-2003 07:15 PM
can i set ~/public_html/perl as a perl directory for apache? doublefailure Linux - Networking 1 07-09-2002 05:31 PM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration