in reply to Re^2: Use of uninitialized value in ...
in thread Use of uninitialized value in ...

He did? Cool! I should keep up with these things more closely.
  • Comment on Re^3: Use of uninitialized value in ...

Replies are listed 'Best First'.
Re^4: Use of uninitialized value in ...
by dave_the_m (Monsignor) on Feb 23, 2008 at 00:32 UTC
    Note that while it makes a best effort to determine the variable name (or array/hash subscript), that can't always be unambiguously determined: in which case it falls back to the old format:
    $ perl5100 -we 'my ($x,@y); $x=$y[0]+1' Use of uninitialized value $y[0] in addition (+) at -e line 1. $ perl5100 -we 'my ($x,@y); $x=$y[0]+$y[1]' Use of uninitialized value in addition (+) at -e line 1. Use of uninitialized value in addition (+) at -e line 1. $

    Dave