Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old November 14th, 2000, 06:45 AM
tooljob tooljob is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 17 tooljob User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to tooljob
Im a Perl newbie, and what exactly is
mod_perl?

I have a cgi-bin directory for cgi scripts,
does this have anything to do with
mod_perl??

thanks

ToolJob

Reply With Quote
  #2  
Old November 14th, 2000, 07:08 AM
dwarf dwarf is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 300 dwarf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Simply put, mod_perl is a perl interpreter which is built into the Apache web server. There are more precise definitions, but this one is the easiest to understand. The process of writing perl scripts is almost the same, however there are a few things you need to watch out for. As a example, all file handles need to be closed beforethe script is over. This differs from the standard Perl style.

Useful link: http://perl.apache.org/ .

HTH.

Reply With Quote
  #3  
Old November 26th, 2000, 12:13 PM
Alexey Alexey is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 0 Alexey User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi ToolJob,

mod_perl module makes your Perl scripts run fast, by turning them into compiled exectables inside Apache server. If you have mod_perl on your server, do not protest. It is the fine thing to have.

Just observe the following rules:
1) declare variables like this:

my $somevar;
$somevar="a value";

2)never call 2 variables the same, even if they are in different scripts.

If you do it, you will be OK, if not, then you will see the frightful occurrence of the so-called "sticky variables".

A cgi-bin folder you may have also without mod_perl. It is just a place to put your scripts in.

Alexey

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > What exactly is mod_perl?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway