where does one put use strict
Piers Harding
piers at ompa.net
Wed Oct 2 02:13:24 CDT 2002
I believe that use strict/warnings are lexically scoped, so if you
switched on outside a package declaration in a file then the would
affect the rest of the file, until you used "no strict/warnings".
Problem is that some pragmatic modules are not lexically scoped and
there isnt much documentation about it.
Cheers.
On Wed, Oct 02, 2002 at 01:37:38PM +1000, Scott Penrose wrote:
> Hey Dudes,
>
> I have been working on some code which inserts 'use strict' before the
> package line
> eg:
> use strict;
> use warnings;
>
> package Blah;
> use Another;
>
> Now what concerns me about this is that strict and warning then appears
> outside of the package, and therefore in whatever contains the use, or
> does it ?
>
> What is the effect of putting these outside of the package line ?
>
> Scott
> --
> Scott Penrose
> VP in charge of Pancakes
> http://linux.dd.com.au/
> scottp at dd.com.au
>
> Dismaimer: If you receive this email in error - please eat it
> immediately to prevent it from falling into the wrong hands.
More information about the Melbourne-pm
mailing list