Return-Path: Delivered-To: apmail-perl-embperl-archive@www.apache.org Received: (qmail 87677 invoked from network); 28 Apr 2006 20:38:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Apr 2006 20:38:39 -0000 Received: (qmail 98496 invoked by uid 500); 28 Apr 2006 20:38:37 -0000 Delivered-To: apmail-perl-embperl-archive@perl.apache.org Received: (qmail 98328 invoked by uid 500); 28 Apr 2006 20:38:35 -0000 Mailing-List: contact embperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list embperl@perl.apache.org Received: (qmail 98283 invoked by uid 99); 28 Apr 2006 20:38:34 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Apr 2006 13:38:34 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [64.142.79.74] (HELO nero.netwalk.org) (64.142.79.74) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Apr 2006 13:38:32 -0700 Received: by nero.netwalk.org (Postfix, from userid 1001) id 5A48785A1; Fri, 28 Apr 2006 13:37:04 -0700 (PDT) Date: Fri, 28 Apr 2006 13:37:04 -0700 From: Daniel To: embperl mailinglist Subject: strange nesting(?) behavior 1.3.6 -> 2.2.0 Message-ID: <20060428203704.GG35612@nero.netwalk.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6i X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Found a piece of oddity. I reread README.v2.txt again this time so I didn't stumble on something else that was mentioned. The closest thing I could possibly relate my behavior problems to is this: "- Nesting must be done properly. I.e. you cannot put a tag (for a dynamic table) inside an 'if' and the inside another 'if'. (That still works for static tables)" Here's the code which produeces the problem (this worked in 1.3.6): =================================================== [- $var="232"; @graph_order = qw(one two three four five six seven eight); -] [- $count = 1 -] [$ foreach $graph (@graph_order) $] [$ if ($count % 3 == 0) $] [$ else $] [$ endif $] [- $count++ -] [$ endforeach $]
[+$count+] [+ $graph +]
notr [+$count+] [+ $graph +]
[+ $var +] Here is the output: ===================================================
notr 1 one
<[+>$var If this is truly a nested problem, how can I get the functionality I want? The '<[+>$var' is also interesting. -- "One certain effect of war is to diminish freedom of expression. Patriotism becomes the order of the day and those who question the war are seen as traitors, to be silenced and imprisoned." - Howard Zinn --------------------------------------------------------------------- To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org For additional commands, e-mail: embperl-help@perl.apache.org