Return-Path: Delivered-To: apmail-perl-embperl-archive@perl.apache.org Received: (qmail 29711 invoked by uid 500); 2 Aug 2003 02:54:33 -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 29698 invoked from network); 2 Aug 2003 02:54:33 -0000 Received: from evrtwa1-ar19-4-41-130-089.evrtwa1.dsl-verizon.net (HELO rsmba.biz) (4.41.130.89) by daedalus.apache.org with SMTP; 2 Aug 2003 02:54:33 -0000 Received: (qmail 98627 invoked from network); 2 Aug 2003 02:52:57 -0000 Received: from localhost (HELO foghorn.rsmba.biz) (127.0.0.1) by localhost with SMTP; 2 Aug 2003 02:52:57 -0000 Date: Fri, 1 Aug 2003 19:52:57 -0700 From: Richard Schilling To: embperl@perl.apache.org Subject: behavior of [! !] Message-ID: <20030802025257.GA98546@foghorn.rsmba.biz> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=ISO-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Mailer: Balsa 1.4.4 Lines: 38 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Was reading through the documentation, and don't see too much detail on the exact differences between [! !] and [- -]. I see that [! !] runs the code block once. But, it's unclear what "once" means. Here's a little test I did: test2.epl: [- $a = 0 -] [! $a++; !] a = [+ $a +]
Is the [! !] block run the first time the page loads, and therfore not run again when you click refresh? When I use [! !] to define a subroutine, where is the subroutine stored? [- -] blocks allow me to use variables created in them later in the page. Why does [! !] do not? Thanks! Richard Schilling --------------------------------------------------------------------- To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org For additional commands, e-mail: embperl-help@perl.apache.org