Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Take a look at this. See those guys? If you don't use strict (they are lax on warnings), they will hunt you down and say mean things to you.

Seriously, the _best_ reason i can think of is 'it will save you time and keep you from stressing out'.

I had recently found myself getting very lax at using strict and warnings, and it was showing! The average programmer makes typos, lots of them. Strict and warnings will help you catch those typos, don't use them and you will waste your time trying to understand why your program is not working correctly, even though it compiles.

So, if you are really good at 'guessing' why your program is broken, then don't bother with strict and warnings, but if you cherish the hairs on your head and a calm stomach, please use them. :)

perl -le '$x="jeff";$x++ for(0..4482550);print $x'


In reply to (jeffa) Re: Why use strict/warnings? by jeffa
in thread Why use strict/warnings? by Mr.T

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



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2024-04-20 15:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found