Ntav has asked for the wisdom of the Perl Monks concerning the following question:
and though this works (i.e. when I print I don't try and print an uninitialized variable) if I execute with warnings on, perl complains.if($array[$i][$j] == 0){ $array[$i][$j] = 0;}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: undefined elements in array
by jlongino (Parson) on Sep 09, 2001 at 15:59 UTC | |
|
Re: undefined elements in array
by demerphq (Chancellor) on Sep 09, 2001 at 19:38 UTC | |
|
Re: undefined elements in array
by bless$self=>perlmonks; (Novice) on Sep 09, 2001 at 18:09 UTC | |
|
Re: undefined elements in array
by tachyon (Chancellor) on Sep 10, 2001 at 02:39 UTC | |
by Anonymous Monk on Aug 20, 2013 at 13:35 UTC | |
by Athanasius (Archbishop) on Aug 20, 2013 at 14:17 UTC |