Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Tracking down "uninitialized value" errs

by Abigail-II (Bishop)
on Jul 30, 2003 at 10:49 UTC ( #279135=note: print w/replies, xml ) Need Help??


in reply to Re: Tracking down "uninitialized value" errs
in thread Tracking down "uninitialized value" errs

Could you elaborate on your suggestion? From reading the documentation of the Error module, and the article you pointed to, it isn't clear to me at all how the Error module could help in catching warnings from already written code.

From what I understood is that the Error module provides you a frame work to set up your own exception handling mechanism, where you can throw exceptions and catch them. Which is something completely different from what the OP wants to do.

Abigail

  • Comment on Re: Tracking down "uninitialized value" errs

Replies are listed 'Best First'.
Re: Re: Tracking down "uninitialized value" errs
by nite_man (Deacon) on Jul 30, 2003 at 11:23 UTC

    Generally, you are right, but, in my mind, this problem was because there were not defined some values in the programm. So, using catch of exeptions can help to know, where undefined data were used and corrected them.

    _ _ _ _ _ _
      M i c h a e l

      How so? Use of an uninitialized value in Perl is not an exception. Perl will issue a warning, and then continue.

      Abigail

        Ok, your are right, I haven't understood clearly of core of problem ...

        _ _ _ _ _ _
          M i c h a e l

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://279135]
help
Chatterbox?
[erix]: in this context, one learns all kinds of interesting psychological excuse-jargon: not just 'alternative facts'; how about 'gapped knowledge' ? :)
[erix]: which still manages to sound more or less positive
[Corion]: Huh. I wasn't aware that you cannot segregate Python 2 and Python 3 modules... Hopefully Perl 6 module use C6AN and thus avoid the problem...
[hippo]: I very much hope so.
[moritz]: there are already some (very few) Perl 6 modules on CPAN, but in a way that the p5 indexer avoids them
[hippo]: It's confusing enough to have the Perl6:: namespace which isn't for Perl6 but for features from that ported into Perl.

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (13)
As of 2017-01-24 09:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (203 votes). Check out past polls.