Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^4: How many man-hours would you estimate you have invested in learning Perl?

by SuicideJunkie (Vicar)
on Apr 09, 2013 at 16:04 UTC ( [id://1027771]=note: print w/replies, xml ) Need Help??


in reply to Re^3: How many man-hours would you estimate you have invested in learning Perl?
in thread How many man-hours would you estimate you have invested in learning Perl?

Sure, you want warnings turned on... for your own code. That's what use warnings is for.

Why would you want to use a global setting to cause other modules to throw warnings even though they are operating as intended? (as in the example)

  • Comment on Re^4: How many man-hours would you estimate you have invested in learning Perl?
  • Download Code

Replies are listed 'Best First'.
Re^5: How many man-hours would you estimate you have invested in learning Perl?
by educated_foo (Vicar) on Apr 09, 2013 at 17:12 UTC
    For one example, "-w" catches all kinds of data errors, from premature EOF to non-numbers where you expect numbers, when you pass a file handle to someone else's code. You'll get false positives, but you will also get a hint where the problem lies when you are getting unexpected results. Fix the ones you care about, remove the "-w" when you're done, and there you go. Monstrosities like "strictures", which turn on all warnings but only in your code, will not only miss these errors, but complain about non-problems.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1027771]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-24 03:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found