in reply to Is this a severe error?
But if you have it, it probably means that you are not inspecting your data close enough before using it. Although I might probably not care in a one-off one-liner, I would never leave such a warning in actual production code, even if the results are OK. Check your data before you use it, make sure it looks like what you expect, and raise an exception (or a warning) if it does not fit the bill.
Perl's strict and warnings pragmas, among others, help you writing more correct software, take advantage of it, don't hide the dust under the carpet.
Having said that, there are a very few cases where you might want to silence out some warnings. You can do that, if you really know what you're doing. There is at least one case where I remember having done it: the "deep recursion" warning tells you that you have entered more than 100 recursion levels. Sometimes it's OK if you have another way of controlling that the depth of recursion is not going run amok. But you really have to know damn well what you are doing. Judging from your question, you are not at that point yet.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Is this a severe error?
by Anonymous Monk on Jun 04, 2015 at 17:14 UTC | |
by choroba (Cardinal) on Jun 04, 2015 at 17:37 UTC | |
by Laurent_R (Canon) on Jun 04, 2015 at 17:42 UTC | |
by Anonymous Monk on Jun 04, 2015 at 18:06 UTC | |
by Laurent_R (Canon) on Jun 04, 2015 at 18:54 UTC | |
by Anonymous Monk on Jun 04, 2015 at 22:30 UTC |