Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 83248 invoked from network); 3 Apr 2008 20:18:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Apr 2008 20:18:26 -0000 Received: (qmail 21391 invoked by uid 500); 3 Apr 2008 20:18:20 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 21378 invoked by uid 500); 3 Apr 2008 20:18:20 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 21367 invoked by uid 99); 3 Apr 2008 20:18:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Apr 2008 13:18:20 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of fjmolinabravo@gmail.com designates 216.239.58.186 as permitted sender) Received: from [216.239.58.186] (HELO gv-out-0910.google.com) (216.239.58.186) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Apr 2008 20:17:36 +0000 Received: by gv-out-0910.google.com with SMTP id e6so808353gvc.26 for ; Thu, 03 Apr 2008 13:17:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=reQfLx9HMUcRfHG14y5+7ReJuo/BJn42l/z3lRi7Zms=; b=FSWrXvpl+6VYt7fffXBva0gu/stHJTDqTP0dBID0IV7UB/BsmaMdQdUoFcNktgS/+u4E1WU8FEof4NNe81ZK6sstUnuCCWK+slbGHDJPgftY4xzFGsZcGNXL5UFYKDY+5aXDqW/bVA8lWrBZyoOl+LPoIYpE0hqXXR3/F31rNB0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=KH0XgWt3JFPsFHXCf4EcLmwgg2tkbw2qUuMy1fWPwVNR/RHzh5ZW+xySnF/4f4BjMx/txx9Vgss070bnwvkrNU76Wpes+/praNX/GIE1fmlZRO3fc1m+5u9rrpB2j/eOxMFQtvE5mX4+Wh2QyGmcdZUP4Svtq7kTqths+hoqd28= Received: by 10.150.92.11 with SMTP id p11mr135600ybb.36.1207253867066; Thu, 03 Apr 2008 13:17:47 -0700 (PDT) Received: by 10.151.12.6 with HTTP; Thu, 3 Apr 2008 13:17:47 -0700 (PDT) Message-ID: Date: Thu, 3 Apr 2008 14:17:47 -0600 From: "=?ISO-8859-1?Q?Felipe_de_Jes=FAs_Molina_Bravo?=" To: "Perrin Harkins" Subject: Re: share objects Cc: modperl@perl.apache.org In-Reply-To: <66887a3d0804031159v40efda62ic42e9c41fa7ebf95@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_4163_1491849.1207253867081" References: <66887a3d0804030924t383bed92l3b9bef23a7b42e0e@mail.gmail.com> <66887a3d0804031159v40efda62ic42e9c41fa7ebf95@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_4163_1491849.1207253867081 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 2008/4/3, Perrin Harkins : > > On Thu, Apr 3, 2008 at 1:33 PM, Felipe de Jes=FAs Molina Bravo > wrote: > > > It depends on what you mean by share. You can create a simple perl > > > object in startup.pl and access it from all processes later, but if > > > you change it in one process, the change will not be seen in the > > > others. With objects that contain open sockets, file handles, or XS > > > structures, you usually can't share them at all. > > > > Is when they can be shared? and if my file handle is open of "ro" ...= . > it > > can share between process? > > > It can be done, but it's tricky. When you try to use one file handle > from multiple process it gets confused about the location in the file. > If you really need to do it, read about shared file handles in > Programming Perl or your favorite Unix reference. > > > - Perrin > ok ...thanks a lot regards felipe ------=_Part_4163_1491849.1207253867081 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

2008/4/3, Perrin Harkins <perrin@elem.com>:
On Thu, Apr 3, 2008 at 1:33 PM, Felipe de Jes=FAs Molina Bravo
<fjmolinabravo@gmail.com> wrot= e:
> > It depends on what you mean by share.  You can c= reate a simple perl
> > object in startup.pl and access it from all processes later, but= if
> > you change it in one process, the change will not be seen= in the
> > others.  With objects that contain open soc= kets, file handles, or XS
> > structures, you usually can't share them at all.
> > Is when they can be shared?  and if my file handle is open= of "ro"  .... it
> can share between process?

It can be done, but it's tricky.  When you try to= use one file handle
from multiple process it gets confused about the location in the file.
=   If you really need to do it, read about shared file handles in<= br> Programming Perl or your favorite Unix reference.


- Perrin=

ok ...thanks a lot


regards
felipe

------=_Part_4163_1491849.1207253867081--