perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <rich...@ecos.de>
Subject Re: Global 'use strict' in 2.x
Date Wed, 06 Nov 2002 05:20:53 GMT
> 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:     richter@ecos.de         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message