in reply to Use of uninitialized value in array element
I really don't recommend doing this every time you get an uninitialized error, but if you expect there to be uninitialized values and it's a hassle to initialize them (see. chance for more bugs to creep in) then this can be very handy.{ no warnings 'uninitialized'; for(0..3) { ($sums[$i])->[$_][$j] += $vals[$_+1]; if($ts >= 21) { $sums[$i]->[4][$j] += $vals[5]; $sums[$i]->[5][$j] += $vals[6]; } } $totals[$i]->[$j]->[0]++; }
_________
broquaint
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Use of uninitialized value in array element
by dimmesdale (Friar) on Jul 12, 2002 at 15:27 UTC |