in reply to to strict or not to strict

strict catches my tyops before the program even starts running (in a manner of speaking). So anything over 5 or 10 lines gets strict. Unless I really need symbolic references, that is. But then, my name's not Damian, so I don't need them very often :-)

Update: I only remember using symrefs once.

Replies are listed 'Best First'.
Re: Re: to strict or not to strict
by thelenm (Vicar) on Oct 16, 2003 at 22:23 UTC

    And of course, if you really did need symbolic refs, one of the great things about strict (and warnings too) is that you can disable it locally:

    use strict; # symbolic refs are disallowed here { no strict 'refs'; # use symbolic refs as much as you like here } # symbolic refs are disallowed here too

    -- Mike

    --
    XML::Simpler does not require XML::Parser or a SAX parser. It does require File::Slurp.
    -- grantm, perldoc XML::Simpler