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

You are free to patch Perl to fix this.

Dave Mitchell fixed it in Perl 5.10.

  • Comment on Re^2: Use of uninitialized value in ...

Replies are listed 'Best First'.
Re^3: Use of uninitialized value in ...
by tilly (Archbishop) on Feb 22, 2008 at 23:37 UTC
    He did? Cool! I should keep up with these things more closely.
      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