V
vdhinesh
hi all,
can any one tell what is the difference between perl and
mod_perl ???
can any one tell what is the difference between perl and
mod_perl ???
hi all,
can any one tell what is the difference between perl and
mod_perl ???
perlexecutesperlscript as a standalone process.
mod_perlrunsperlscript in the context of an Apache web server.
The latter imposes some constraints and expectations on the script.
HTH
Tim
can any one tell what is the difference between perl and
mod_perl ???
Dinesh said:Hi
can you explain in brief???????
dhinesh
hi all,
can any one tell what is the difference between perl and
mod_perl ???
God forbid a newbie asks a question here... You will most likely
encounter idiots who will indirectly flame you for saying 'perl'
instead of 'Perl'.
Example?
Guys... It's NOT a big deal. You KNOW what he meant. This is one of
the reasons why the Perl usenet group is complete garbage. A lot of
brains but very poor social skills.
Projecting?
I've said it before and I'll say it again... Some of you guys need
some lessons in social situations because you do NOT know how to
interact with other people!!!
To answer the original posters question... Perl and mod_perl is the
same language, Perl. But mod_perl embeds a perl interputer into Apache
HTTP. With mod_perl the code is compiled once (on first time execution
after update) and remains cached in memory. This saves on start up
time thus making your code 'run' faster. With mod_perl you can also
control the Apache life cycle.
Brad Baxter said:On Jul 4, 7:05 pm, (e-mail address removed) wrote:
[...]
same language, Perl. But mod_perl embeds a perl interputer into Apache
That sounds a lot like all the other answers given.
Brad Baxter said:On Jul 4, 7:05 pm, (e-mail address removed) wrote:
[...]
same language, Perl. But mod_perl embeds a perl interputer into ApacheThat sounds a lot like all the other answers given.
...except for the "interputer". I like the word.
You might have a computer. What you had first might have been an
anteputer (or preputer). Then you might have had your interputer (or
transputer). In the future, you might get a postputer. You might have
a bunch of peripherals circumputer, periputer, epiputer, amphiputer,
or even exputer. If you kept everything, you might be polyputer (vs.
monoputer or soloputer). They might be homoputer or heteroputer. Not
that there's anything wrong with that. Your wife may be aputer, but if
they take up a lot of space, she might be downright antiputer.
Any disputers?
Tim said:That's pretty brief - what are you having trouble understanding?
Both use the Perl interpreter in the libperl library - in fact, if
you do a "ls -l /usr/bin/perl", you'll see that it's positively tiny,
[...]hi all,
can any one tell what is the difference between perl and
mod_perl ???
To answer the original posters question... Perl and mod_perl is the
same language, Perl.
But mod_perl embeds a perl interputer into Apache
HTTP. With mod_perl the code is compiled once (on first time execution
after update) and remains cached in memory. This saves on start up
time thus making your code 'run' faster. With mod_perl you can also
control the Apache life cycle.
environment or another. One that a tailored for mod_perl are probably in
fact tailored to CGI use in general.
Joe said:Global variables may or may not be set to undef when the script runs.
For example:
our $active_accounts;
if ($active_accounts) {
reset_global_variables(); # Clear out junk from previous invocation
$active_accounts = 0;
}
The idiom of "our local $variable_name;" is useful in mod_perl.
-Joe
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.