----- Original Message -----
From: Dan Muey <[EMAIL PROTECTED]>
Date: Thursday, July 3, 2003 12:25 pm
Subject: Turn use strict 'refs' back on after no strict 'refs'

> Howdy all.

Hi Dan,

> 
> I have the need to turn off strict refs for one line.
> I want to make sure strict refs is back on afterward.
> 
> if(...) {
>       no strict 'refs';
>       ...use refs here...
>       use strict 'refs';
> }
> 
> Is that how I turn them back on or ??? 

according to perlmodlib its only enforced untill the end of he block, In your example 
I would asume you would need an additional block with the if block.
just my $.02

Mark G.

> (I think all 'use's get done before anything else so it would be 
> pointless to have it there? )
> 
> Or does the no strict 'refs' apply only within it's own block so 
> after I'm out of that if{} statement strict refs are back on?
> 
> Thanks
> 
> Dan
> 
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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

Reply via email to