Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 17413 invoked from network); 4 Jul 2007 02:59:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Jul 2007 02:59:29 -0000 Received: (qmail 48693 invoked by uid 500); 4 Jul 2007 02:59:25 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 48670 invoked by uid 500); 4 Jul 2007 02:59:25 -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 48655 invoked by uid 99); 4 Jul 2007 02:59:25 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jul 2007 19:59:25 -0700 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=MAILTO_TO_SPAM_ADDR,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of pharkins@gmail.com designates 209.85.132.243 as permitted sender) Received: from [209.85.132.243] (HELO an-out-0708.google.com) (209.85.132.243) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jul 2007 19:59:20 -0700 Received: by an-out-0708.google.com with SMTP id c28so446053ana for ; Tue, 03 Jul 2007 19:59:00 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=OokkqqlPGLq+l1hL7KgPOOLzTxjx/U42D+ToLXODE4R0QwzA54fPmQYGpVNMmkAqrzAecPMNlB+MTXF5NFaYoMoNNUrCwXlQSUpWoBj7D40U7MCe45aSN2ZKL93w26hCe5z6fyxs0gs/4ODiFkpM6GBv4CYmV1B94VCZsx+A/Mo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=eSZmCtry+hU2Bd6QYBVfRLp4I8iPrxZZ4MQ741giBub6Of6paL87sb0nVOPPZqQOvW/TNqbtF9rY8jug1CODJQJF17n+EDHLT8ZhavBLUZN5tYV62w+niMsYw36j4JW04vs/sCvzErvvYrGcRDuh27Blz9YIHVylxEwbWj8iUJ4= Received: by 10.100.37.4 with SMTP id k4mr4642243ank.1183517940055; Tue, 03 Jul 2007 19:59:00 -0700 (PDT) Received: by 10.100.168.11 with HTTP; Tue, 3 Jul 2007 19:59:00 -0700 (PDT) Message-ID: <66887a3d0707031959t224f6175pc1dc86724232a9d7@mail.gmail.com> Date: Tue, 3 Jul 2007 22:59:00 -0400 From: "Perrin Harkins" Sender: pharkins@gmail.com To: "Craig Tussey" , modperl Subject: Re: passing CGI paramters In-Reply-To: <146276.69601.qm@web56304.mail.re3.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <66887a3d0707031458j5fa41d78sdde7d08062bb18b3@mail.gmail.com> <146276.69601.qm@web56304.mail.re3.yahoo.com> X-Google-Sender-Auth: 6ca7b203084d5675 X-Virus-Checked: Checked by ClamAV on apache.org [Please keep it on the list] On 7/3/07, Craig Tussey wrote: > Thanks again for responding. Here is the link to my > scratchpad. Keep in mind that I was making entries > to the scratchpad in response to Clintons questions. > > http://www.perlmonks.org/?viewmode=public;node_id=624649 Okay, you really aren't showing much code here. From what you did show, I'm guessing you're doing this: my $govlevel = $page->param("str"); print_html(); sub print_html { print "blah blah $govlevel blah blah"; } That doesn't work because the sub becomes a closure and never notices when you create new versions of $govlevel. The fix is to pass $govlevel to the sub as a parameter. - Perrin