http://www.perlmonks.org?node_id=279121


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.