![]() |
|
"be consistent" | |
PerlMonks |
comment on |
( #3333=superdoc: print w/replies, xml ) | Need Help?? |
I was thinking of definedness in the defined sense, but after some testing I discovered something really bizarre: Calling defined on an array that was declared as empty versus one that had been populated and then later emptied returns different results!
I can reproduce the results under both 5.00503 and 5.6.1, but while I was ready to start screaming 'BUUUUUUUUGGG!', I then noticed 5.6.1 also spits out the following with warnings are enabled ...
Something to watch out for, I guess! --k. In reply to Re: Re: Re: undef'ing @arrays caveat
by Kanji
|
|