Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^5: Tree::Nary Question

by Dandello (Monk)
on Mar 09, 2011 at 02:02 UTC ( [id://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.

Replies are listed 'Best First'.
Re^6: Tree::Nary Question
by ikegami (Patriarch) 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 (Patriarch) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://892132]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-25 10:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found