[EMAIL PROTECTED] wrote:
Does the following turn off strict for a vars?

no strict "vars";

Could you also turn off strict for other things besides vars, refs and subs? Say for a subroutine (for example).


Pragma are block/file scoped similar to a lexical. To answer your question below, yes you could turn off all or a subset of the strict pragma for a given block. Suggested reading:


perldoc strict
perldoc -f use
perldoc perllexwarn

Just curious. I've run into situations where I've come across badly maintained code and would like to do this for pieces instead of the whole deal.


That is probably the best use of them, at least until you cleanup the code sufficiently that they can go back to being file scoped.


http://danconia.org

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to