Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^5: Tree::Nary Question

by Dandello (Scribe)
on Mar 09, 2011 at 02:02 UTC ( #892132=note: print w/ replies, xml ) Need Help??


in reply to Re^4: Tree::Nary Question
in thread Tree::Nary Question

Well, there are 'error' errors that stop the script - like mismatched brackets - then there are 'warning' errors that tell you something's wrong, but not bad enough to crash the program. Warnings are things you need to know about, but Perl will try to 'guess' what was meant or needed. In this case, the module needed three parameters and warned when there were only two - but it still kept going. But with the missing parameter, it couldn't give the proper result as the value it used to keep going with would have been 0 or null.

So yes, it's an 'error' but a non-fatal one.


Comment on Re^5: Tree::Nary Question
Re^6: Tree::Nary Question
by ikegami (Pope) on Mar 09, 2011 at 07:19 UTC

    Exactly, but for some reason, people have been going out of their way to say that errors that aren't fatal aren't errors. I was just addressing an instance of this.

    Some errors are fatal, and some errors produces warnings. Warnings are also produced spuriously, which is an error in of itself. Saying they're not errors is just plain wrong.

      Saying they're not errors is an error.
      There, fixed it for ya!
Re^6: Tree::Nary Question
by ikegami (Pope) on Mar 09, 2011 at 07:24 UTC

    Exactly, but for some reason, people have been going out of their way to say that errors that aren't fatal aren't errors. I was just addressing an instance of this.

    Some errors are fatal, and some errors produces warnings. Warnings are also produced spuriously, which is an error in of itself. Saying they're not errors is just plain wrong.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (10)
As of 2014-12-29 16:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (193 votes), past polls