From: "Dan Muey" <[EMAIL PROTECTED]>
> Howdy all.
>
> 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 ???
Yes
> (I think all 'use's get done before anything else so it would be
> pointless to have it there? )
No. The use strict ... gets executed just at the right time ... when
Perl parses&compiles your code.
> 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?
Yes.
Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed
to get drunk and croon as much as they like.
-- Terry Pratchett in Sourcery
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]