RE: global variable

2010-02-05 Thread Morten Bjørnsvik
m: cr...@animalhead.com [mailto:cr...@animalhead.com] Sent: 4. februar 2010 19:06 To: Morten Bjørnsvik Cc: modperl@perl.apache.org list Subject: Re: global variable Hi, IPC::MMA and its underlying MM library are written entirely in C. I originally got into this business when I read some user reviews that

Re: global variable

2010-02-04 Thread craig
...@normalperson.e4ward.com Cc: modperl@perl.apache.org Subject: Re: global variable I rewrote IPC::MMA from an earlier CPAN module so that I could use shared memory among Apache children. You can read about it at http://search.cpan.org/~mackenna/IPC-MMA-0.6/MMA.pod On Feb 2, 2010, at 9:45 PM, m...

RE: global variable

2010-02-04 Thread Morten Bjørnsvik
Analytics, Oslo, Norway. -Original Message- From: macke...@animalhead.com [mailto:macke...@animalhead.com] Sent: 3. februar 2010 18:18 To: m...@normalperson.e4ward.com Cc: modperl@perl.apache.org Subject: Re: global variable I rewrote IPC::MMA from an earlier CPAN module so that I could use

Re: global variable

2010-02-03 Thread David Nicol
DirDB provides a very simple persistence, sharable data structure, using the file system.

Re: global variable

2010-02-03 Thread craig
Just thought to add: One of the most interesting uses of IPC::MMA is to create a shared memory in a PerlPostConfigHandler, and then use it to tie scalars or arrays or hashes in other modules into the shared memory. In write-seldom, read-mostly applications like the cache hash in Image::Size, thi

Re: global variable

2010-02-03 Thread Boysenberry Payne
Looks like a great module. It says early on in the docs that it doesn't use references; does that mean we need to dereference in order to store that values? Thanks, Boysenberry Payne On Feb 3, 2010, at 10:17 AM, macke...@animalhead.com wrote: > I rewrote IPC::MMA from an earlier CPAN module so

Re: global variable

2010-02-03 Thread mackenna
I rewrote IPC::MMA from an earlier CPAN module so that I could use shared memory among Apache children. You can read about it at http://search.cpan.org/~mackenna/IPC-MMA-0.6/MMA.pod On Feb 2, 2010, at 9:45 PM, m...@normalperson.e4ward.com wrote: Hello, Is there a method to setup a global vari

Re: global variable

2010-02-03 Thread Perrin Harkins
On Wed, Feb 3, 2010 at 2:20 AM, André Warnier wrote: > m...@normalperson.e4ward.com wrote: >> >> Hello, >> >> Is there a method to setup a global variable for all modperl child >> processes? >> Also this variable will be updated sometime, when it get updated, all >> processes will know it. >> > As

Re: global variable

2010-02-03 Thread Torsten Förtsch
On Wednesday 03 February 2010 06:45:06 m...@normalperson.e4ward.com wrote: > Is there a method to setup a global variable for all modperl child > processes? Also this variable will be updated sometime, when it get > updated, all processes will know it. > File::Map mmap()s a file and makes it vis

Re: global variable

2010-02-03 Thread Fayland Lam
why not use memcached or FastMmap? Thanks On 2010-2-3 16:19, m...@normalperson.e4ward.com wrote: On Wed, Feb 3, 2010 at 4:18 PM, wrote: On Wed, Feb 3, 2010 at 3:20 PM, André Warnier wrote: But if you give some more details about the platform, the Apache, and what you are trying t

Re: global variable

2010-02-03 Thread moli
On Wed, Feb 3, 2010 at 4:18 PM, wrote: > On Wed, Feb 3, 2010 at 3:20 PM, André Warnier wrote: > >> But if you give some more details about the platform, the Apache, and what >> you are trying to do, someone may be able to suggest an alternative. >> >> > > Something linke java servlet's global va

Re: global variable

2010-02-03 Thread moli
On Wed, Feb 3, 2010 at 3:20 PM, André Warnier wrote: > But if you give some more details about the platform, the Apache, and what > you are trying to do, someone may be able to suggest an alternative. > > Something linke java servlet's global variable. Maybe set it via environment variable? Tha

Re: global variable

2010-02-02 Thread André Warnier
m...@normalperson.e4ward.com wrote: Hello, Is there a method to setup a global variable for all modperl child processes? Also this variable will be updated sometime, when it get updated, all processes will know it. As a general answer, no. That is because each child has its own separate perl i