Return-Path: Delivered-To: apmail-perl-embperl-archive@perl.apache.org Received: (qmail 82745 invoked by uid 500); 17 Jul 2003 19:44:08 -0000 Mailing-List: contact embperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list embperl@perl.apache.org Received: (qmail 82631 invoked from network); 17 Jul 2003 19:44:06 -0000 Received: from ginsberg.uol.com.br (200.221.29.48) by daedalus.apache.org with SMTP; 17 Jul 2003 19:44:06 -0000 Received: from [200.232.150.124] ([200.232.150.124]) by ginsberg.uol.com.br (8.9.1/8.9.1) with ESMTP id QAA03338 for ; Thu, 17 Jul 2003 16:44:08 -0300 (BRT) Subject: Re: Passing A Hash Ref From One .epl To Another From: Luiz Fernando To: Lista Embperl In-Reply-To: <000901c34c83$3500d6a0$01faa8c0@rwl1> References: <000901c34c83$3500d6a0$01faa8c0@rwl1> Content-Type: text/plain; charset=ISO-8859-1 Organization: Engenho Soluções S/C Ltda. Message-Id: <1058471293.1114.3.camel@minga.intranet.engenhosolucoes.com.br> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.3 Date: 17 Jul 2003 16:48:14 -0300 Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, The most simple way is: [- Execute('page.epl', $hash_ref); -] and in page.epl: [- ($hash_ref) = @param; -] You can pass as many variables as needed. If even with this method your apache segfaults than you have an installation problem. Regards, -- Luiz Fernando Ribeiro Engenho Solu��es S/C Ltda On Thu, 2003-07-17 at 13:48, Cameron B. Prince wrote: > Hi, > > In one of my pages I have a block at the top that calls a custom package > I've created. This package returns a reference to a hash of hashes. This > page has two output blocks. Each loops over one of the embedded hashes. This > is working fine. > > Now, I need to create another page that will only use one of these output > blocks. Rather than having the same code in two pages, I would like to break > out this block into it's own .epl file and just Execute it from the two > pages. The deal is, I don't want to call the package from both the page and > the .epl file. > > Is there anyway to pass a reference to one of the embedded hashes to the > .epl file as it's called from one of the two pages? > > I've been trying some like this from the docs: > > Execute ({inputfile => $filename, param => $href }) ; > > But when I do, I get: [Wed May 21 22:51:38 2003] [notice] child pid 2166 > exit signal Segmentation fault (11) > > Is what I'm trying to do possible? > > Thanks, > Cameron > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org > For additional commands, e-mail: embperl-help@perl.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org For additional commands, e-mail: embperl-help@perl.apache.org