Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Tracking down "uninitialized value" errs

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


in reply to Tracking down "uninitialized value" errs

You could use a WARN handler. Something like:
$SIG {__WARN__} = sub { require "Carp.pm"; Carp::cluck @_; }

This will give you a stack trace of from where the warning occurred.

Abigail

Replies are listed 'Best First'.
Re: Re: Tracking down "uninitialized value" errs
by jest (Pilgrim) on Jul 30, 2003 at 09:25 UTC

    Thank you so much! This led me right to the problem, if rather verbosely.

    It turns out that whilst streamlining my code, I made incorrect use of a hash slice that brought in more values--some of which were undef--than I had intended; these had no effect on the display but generated errors.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://279121]
help
Chatterbox?
[stevieb]: valgrind doesn't catch a deep internal segfault issue :( sigh
[james28909]: yep, i am scraping a websites date/time stamp from an article. none of that is relevant though because the strings i get are as expected. the returned data from the website is the list of @weekdays
[james28909]: i need to convert those @weekdays to an numerical date based off of scalar localtime

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (2)
As of 2017-04-29 03:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (531 votes). Check out past polls.