Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners > Re: perl module...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 7 Topic 11015 of 11518
Post > Topic >>

Re: perl module?

by noreply@[EMAIL PROTECTED] (Gunnar Hjalmarsson) May 2, 2008 at 06:33 PM

Levente Kovacs wrote:
> J. Peng wrote:
>> On Fri, May 2, 2008 at 2:54 PM, Levente Kovacs <leventelist@[EMAIL PROTECTED]
>
wrote:
>>>  I'd like to write a code shared among several simple scripts, as a
NON-OO
>>>  module, ...

<snip>

>> #########################
>> # the third way
>> #########################
>> Both the first way and the second way are not good.Because your config
>> file is large,the former ways have im****ted all those large content
>> into your main script.If your main script is run under cgi/modperl
>> which is generally multi-process,your memory could be eated quickly.So
>> the best way is to create an object then multi-process can share the
>> object if this object was not changed later,since object is only
>> located in its own namespace.
> 
> Thanks for your answer, approach #3 works good. That is what I wanted.

A slightly surprising response, considering that you in the original 
post said that you would like to write a non-OO module.

-- 
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
 




 7 Posts in Topic:
perl module?
leventelist@[EMAIL PROTEC  2008-05-02 08:54:47 
Re: perl module?
noreply@[EMAIL PROTECTED]  2008-05-02 10:22:54 
Re: perl module?
peng.kyo@[EMAIL PROTECTED  2008-05-02 16:32:32 
Re: perl module?
leventelist@[EMAIL PROTEC  2008-05-02 16:51:14 
Re: perl module?
noreply@[EMAIL PROTECTED]  2008-05-02 18:33:07 
Re: perl module?
leventelist@[EMAIL PROTEC  2008-05-02 19:26:49 
Re: perl module?
peng.kyo@[EMAIL PROTECTED  2008-05-03 01:33:18 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 13:10:19 CDT 2008.