> Hi Gerald, I'm trying to enforce 'use strict' in my [$ sub $] routines for
> 2.0b8. Is there any way to tell Embperl to use strict in every [$ sub $]
without
> having to do something like the following?
>
> [$ sub hello $]
>    [* use strict; my ($self, $name) = @_; *]
>    Hello [+ $name +]!!!!
> [$ endsub $]
>
> I'd like to avoid having to put the 'use strict' explicitly in every [$
sub $].

I think it should be enough to put it in the first sub, but then it is only
active inside of subs.

Using [$var$] without any variables, should force strict in all parts of the
page

Gerald


-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     [EMAIL PROTECTED]         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to