in reply to Use of Uninitialized Value- Multiple Errors
I'm not sure where/what to print in order to debugWell, the error message tells you quite clearly. $breakpoint{$chr}{$i} is undefined. That of course never sets $fix[$k] and causes the second warning later on. I think you want something like this:
Or shorter$fix[$k] = 0; $fix[$k] = 1 if (defined $breakpoint{$chr}{$i} && $breakpoint{$chr}{$i +}==1);
$fix[$k] = defined $breakpoint{$chr}{$i} && $breakpoint{$chr}{$i}==1 ? + 1 : 0;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Use of Uninitialized Value- Multiple Errors
by hghosh (Acolyte) on May 28, 2019 at 17:49 UTC | |
by holli (Abbot) on May 28, 2019 at 18:24 UTC | |
by poj (Abbot) on May 28, 2019 at 19:00 UTC | |
by BillKSmith (Monsignor) on May 28, 2019 at 18:05 UTC |