Re: HTML::Mason - declaration of subs outside out <%ONCE> sections?

2000-07-06 Thread Michael Hanisch
On Thu, 6 Jul 2000, Jon Nangle wrote: > In-Reply-To: ><[EMAIL PROTECTED] > nchen.d> > > Is there any harm in defining subroutines inside regular <%PERL> sections? > > You can do it if you want to, but it is a bad idea because > once Mason has worked its magic, your sub will end up inside > anot

Re: HTML::Mason - declaration of subs outside out <%ONCE> sections?

2000-07-06 Thread Jon Nangle
In-Reply-To: <[EMAIL PROTECTED] nchen.d> > Is there any harm in defining subroutines inside regular <%PERL> sections? You can do it if you want to, but it is a bad idea because once Mason has worked its magic, your sub will end up inside another sub. This is not usually a problem, but if you refe

HTML::Mason - declaration of subs outside out <%ONCE> sections?

2000-07-06 Thread Michael Hanisch
Hi *, I am currently working on a site running HTML::Mason (v0.87). While reading the documentation, I came across the <%ONCE> sections, that are -as the docs put it- " Useful for declaring persistent component-scoped lexical variables (especially objects that are expensive to create), decla