Differences: Perl, mod_perl, and Apache

Can anyone tell me what the differences between these three are?

Apache is open-source web server software – it’s responsible for piping the files comprising a web site into your browser, in a form your browser understands.

Perl is a scripting language, much used to run CGI scripts, as it’s very well suited to manipulating text (which is all a web page really is, when you boil it down to the essentials). It originally became popular on Unix platforms, but it’s been ported to damn near everything these days.

mod_perl is a module for Apache that allows it to run Perl natively – you can use Perl to write additional modules to extend Apache to make it do exactly what you want. In addition, if you’re using Perl for your CGI scripts, it enables you to eliminate the overhead of spawning a Perl interpreter every time J. Random User accesses your CGI script.

More info on these things can be found at Apache’s official site and Perl’s site. If you’re interested in more background, check out The Web Developer’s Virtual Library.


A cubicle is just a padded cell without a door.

Thanks. I’ve been working with perl for a while, but I’m going to be working on a website now, which is why the mod_perl and Apache stuff came up.

This is slightly off-topic, but you may want to look into PHP. It started life as a PERL package for enhancing web pages, but has evolved into a full-fledged programming language specifically designed for CGI-type use. I’m a big fan of PERL, but PHP may be better suited to your needs. And it’s easy to learn.

There are no dangerous weapons,
Only dangerous men.

Joe Cool

Too bad you had to get the info from an American, now isn’t it?

Oh, I don’t know… do you think Cowboy Greg is really such and American-sounding name?

My mistake, he obviously lives in Samoa. In fact, if I hadn’t been in a really rotten mood, I wouldn’t have dumped on you. Please accept my apology. My post was uncalled for.


Crystalguy

Don’t worry about it… that American post was dirty and intentionally inciteful.

Har har har.

Damn Canadians----------


Crystalguy