Hmm. I suppose that helps. I am assuming then, that it is cached between page requests?
If you define a sub routine with [! And reload the page, then it does not need to recompile the sub routine? Or does it just plain skip running it at all? > -----Original Message----- > From: Gavin Carr [mailto:[EMAIL PROTECTED]] > Sent: Sunday, July 28, 2002 6:02 PM > To: Justin M. Harrison > Cc: [EMAIL PROTECTED] > Subject: Re: [! And [- > > > On Sun, Jul 28, 2002 at 03:09:16AM -0400, Justin M. Harrison wrote: > > Could anybody clarify the difference between [! !] and [- -] for me? > > <snip> > > > What makes [! whatever !] so different from [- whatever -]? > When is [- > > whatever -] ever going to be executed twice? > > [- whatever -] gets executed every time the page is > loaded/reloaded. [! whatever !] is executed exactly once, the > very first time that page > is hit; thereafter it's effectively ignored because it's > assumed whatever you've done there (like defining a > subroutine or doing a 'use') is persistent. Does that help or > confuse? :-) > > Cheers, > Gavin > > -- > Fashion is a variable, but style is a constant - Programming Perl > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
