in reply to Odd number of elements in hash assignment warning. Use of uninitialized value warning
which is that it makes @array have one element of undef, not zero elements (empty).@array = undef;
Do not use undef for anything other than the scalar undefined value. Your program could use:
But I'd probably flag that on code review as "potential signs of cluelessness - look very carefully at the remaining code", since that's also the default, and people who override the default with the default tend to make other mistakes. {grin}my %href = ();
-- Randal L. Schwartz, Perl hacker
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: Odd number of elements in hash assignment warning. Use of uninitialized value warning
by swiftone (Curate) on Sep 21, 2000 at 20:20 UTC | |
by blogical (Pilgrim) on May 30, 2007 at 16:05 UTC | |
|
undef has a noun form and verb form. I should have used the verb form
by princepawn (Parson) on Sep 21, 2000 at 20:22 UTC |