I don't know what's going on, but let me give you a response to your cow orkers: let's suppose, worst-case scenario (and highly unlikely) that this is a bug in strict -- the claim that strict is "no good" is still silly (lots of good and useful software tools have bugs). It makes you *think* about your variables and how they're going to be scoped, rather than just splashing them anywhere, and possibly making tyops. I maintain a bunch of scripts that were written without strict in mind, and when things go wrong, tracking down the error is very very hard, because you have no idea where the variable was defined. IF, of course, one is so disciplined as to make the things that should be globals globals, and keep the things that should have local scope local, you won't run into problems. But why should you have to manage those issues yourself when there's a tool that manages that for you? It won't solve all your problems, but it will give you a huge head start on solving them over someone who *doesn't* use strict vars.

And note, that's just strict 'vars' ... you could go on about strict 'refs' and strict 'subs' too =)

Philosophy can be made out of anything. Or less -- Jerry A. Fodor


In reply to Re: Bug in 'strict'?? by arturo
in thread Bug in 'strict'?? by Jouke

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.