Anyone got any good horror stories about 'use strict'?

Sorry, I don't.

As I consider myself to be a good listener, I started using strict from my very first script.

However, I have many horror stories of trying to find a mistake in scripts written by somebody else, without "use strict" at the top.

And yes, 9 out of 10, after working my way through hundreds of error messages, I found the mistake, which usually turned out to be a misspelled variable.

What's your point? Are you trying to say that "use strict" is bad for your development time? If so, I'm afraid that you are barking at the wrong tree. The majority of the Monks could tell you many reasons why "use strict" can make you save development time, not the other way around.

Programmers who don't use strict sooner or later run into trouble, and then they have to call somebody who makes money out of their carelessness. How about this for an horror story? BTW, would you like to play Dracula or the Vampire Hunter?:)

I should also add some good references to the reasons:

 _  _ _  _  
(_|| | |(_|><
 _|   

In reply to Re: Tales from the Crypt, 'use strict' Horror Stories by gmax
in thread Tales from the Crypt, 'use strict' Horror Stories by ptkdb

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.