Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Am I right on Mod_Perl?

Reply
Thread Tools

Am I right on Mod_Perl?

 
 
Picker Leon
Guest
Posts: n/a
 
      12-06-2003
After reading the links on perl.apache.org, I have concluded this:
If I have take care of the globle varible by either make no globle varibles,
or by clean them each time before I use them and after I use them, I can
pretty much use the same code of my perl in mod_perl enviroment.

Please correct me if I am wrong.


 
Reply With Quote
 
 
 
 
Keith Keller
Guest
Posts: n/a
 
      12-06-2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2003-12-06, Picker Leon <> wrote:
> After reading the links on perl.apache.org, I have concluded this:
> If I have take care of the globle varible by either make no globle varibles,
> or by clean them each time before I use them and after I use them, I can
> pretty much use the same code of my perl in mod_perl enviroment.


Not necessarily--there is documentation on other mod_perl traps, which
an appropriate google search should find. Some of these traps can be
subtle, so you should read the docs carefully and decide whether your
code might be susceptible to them.

- --keith

- --
kkeller-
(try just my userid to email me)
AOLSFAQ=http://wombat.san-francisco.ca.us/cgi-bin/fom

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/0XkNhVcNCxZ5ID8RAnsnAJ4msTw9n5giuWC8DrKPVSun4hmrGw CeOf+q
PmwExVv5AwR1lEqmy7zD10U=
=X8Yq
-----END PGP SIGNATURE-----
 
Reply With Quote
 
 
 
 
ko
Guest
Posts: n/a
 
      12-06-2003
Picker Leon wrote:

> After reading the links on perl.apache.org, I have concluded this:
> If I have take care of the globle varible by either make no globle varibles,
> or by clean them each time before I use them and after I use them, I can
> pretty much use the same code of my perl in mod_perl enviroment.
>
> Please correct me if I am wrong.
>


It might be a good idea to start slowly with mod_perl, using the
Apache:erlRun handler. It has better performance than plain CGI
because each child process loads the Perl interpreter once (versus
loading on each request), but global variables are reiniatilized for
each request.

HTH -keith

 
Reply With Quote
 
Randal L. Schwartz
Guest
Posts: n/a
 
      12-07-2003
>>>>> "Picker" == Picker Leon <> writes:

Picker> If I have take care of the globle varible by either make no
Picker> globle varibles, or by clean them each time before I use them
Picker> and after I use them, I can pretty much use the same code of
Picker> my perl in mod_perl enviroment.

Perhaps you are confusing all of mod_perl with the one thing of the
Apache::Registry module used with mod_perl.

Picker> Please correct me if I am wrong.

Asking for that is implied. You're in CLPM, remember?

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
 
Reply With Quote
 
Anno Siegel
Guest
Posts: n/a
 
      12-08-2003
Randal L. Schwartz <> wrote in comp.lang.perl.misc:
> >>>>> "Picker" == Picker Leon <> writes:

>
> Picker> If I have take care of the globle varible by either make no
> Picker> globle varibles, or by clean them each time before I use them
> Picker> and after I use them, I can pretty much use the same code of
> Picker> my perl in mod_perl enviroment.
>
> Perhaps you are confusing all of mod_perl with the one thing of the
> Apache::Registry module used with mod_perl.
>
> Picker> Please correct me if I am wrong.
>
> Asking for that is implied. You're in CLPM, remember?


s/CLPM/Usenet/

Anno
 
Reply With Quote
 
David K. Wall
Guest
Posts: n/a
 
      12-08-2003
Anno Siegel <> wrote:

> Randal L. Schwartz <> wrote in
> comp.lang.perl.misc:
>> >>>>> "Picker" == Picker Leon <> writes:

>>
>> Picker> Please correct me if I am wrong.
>>
>> Asking for that is implied. You're in CLPM, remember?

>
> s/CLPM/Usenet/


"the best way to get accurate information on Usenet is to post
something wrong and wait for corrections"

--Matthew Austern, in rec.arts.sf-written
<>
 
Reply With Quote
 
Tad McClellan
Guest
Posts: n/a
 
      12-08-2003
David K. Wall <> wrote:
> Anno Siegel <> wrote:
>> Randal L. Schwartz <> wrote in
>> comp.lang.perl.misc:
>>> >>>>> "Picker" == Picker Leon <> writes:
>>>
>>> Picker> Please correct me if I am wrong.
>>>
>>> Asking for that is implied. You're in CLPM, remember?

>>
>> s/CLPM/Usenet/

>
> "the best way to get accurate information on Usenet is to post
> something wrong and wait for corrections"



Pigs can fly!


--
Tad McClellan SGML consulting
Perl programming
Fort Worth, Texas
 
Reply With Quote
 
Uri Guttman
Guest
Posts: n/a
 
      12-08-2003
>>>>> "TM" == Tad McClellan <> writes:

TM> David K. Wall <> wrote:
>> Anno Siegel <> wrote:
>>> Randal L. Schwartz <> wrote in
>>> comp.lang.perl.misc:
>>>> >>>>> "Picker" == Picker Leon <> writes:
>>>>

Picker> Please correct me if I am wrong.
>>>>
>>>> Asking for that is implied. You're in CLPM, remember?
>>>
>>> s/CLPM/Usenet/

>>
>> "the best way to get accurate information on Usenet is to post
>> something wrong and wait for corrections"



TM> Pigs can fly!

1. i saw a flying pig at a pink floyd concert in '77 at madison sq
garden. it was the 'animals' tour.

2. we buy bread from a bakery called 'when pigs fly'. they are in maine
and sell in stores all over new england.

uri

--
Uri Guttman ------ -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs ---------------------------- http://jobs.perl.org
 
Reply With Quote
 
Matt Garrish
Guest
Posts: n/a
 
      12-09-2003

"Tad McClellan" <> wrote in message
news:...
> David K. Wall <> wrote:
> >
> > "the best way to get accurate information on Usenet is to post
> > something wrong and wait for corrections"

>
>
> Pigs can fly!
>


It would stand to reason, as I remember well watching Pigs in Space...

Matt


 
Reply With Quote
 
Iain Chalmers
Guest
Posts: n/a
 
      12-09-2003
In article <>,
(Tad McClellan) wrote:

> David K. Wall <> wrote:
> > Anno Siegel <> wrote:
> >> Randal L. Schwartz <> wrote in
> >> comp.lang.perl.misc:
> >>> >>>>> "Picker" == Picker Leon <> writes:
> >>>
> >>> Picker> Please correct me if I am wrong.
> >>>
> >>> Asking for that is implied. You're in CLPM, remember?
> >>
> >> s/CLPM/Usenet/

> >
> > "the best way to get accurate information on Usenet is to post
> > something wrong and wait for corrections"

>
>
> Pigs can fly!


Correct, as per the RFC:

"With sufficient thrust ,pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead." -- RFC 1925



big

--
'When I first met Katho, she had a meat cleaver in one hand and
half a sheep in the other. "Come in", she says, "Hammo's not here.
I hope you like meat.' Sharkey in aus.moto
 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic Menu Items is not right aligned with Right to Left documen =?Utf-8?B?QmlzaG95?= ASP .Net 0 12-28-2006 11:39 AM
Right-Click With Mouse and Toolba Buttonsr Don't Work Right Bigfoot It Is Computer Support 0 10-30-2006 06:08 PM
Tool to enable Right click on pages where Right click is disabled tsteinke@gmail.com Computer Support 4 08-28-2005 11:53 PM
Tool to right click image in windows explorer and rotate image right or left 90 degrees siliconpi Digital Photography 2 11-29-2004 12:56 PM
pass the right form input to the right control Tom ASP .Net 0 12-11-2003 03:07 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57