in reply to Re: array reference
in thread array reference
Not everything can be answered by "try it and see". This is one of those cases where TIAS doesn't work. More importantly, someone asking that question surely knows that (since realloc can return the same pointer it was passed).
You'll also get a false positive if Perl preallocates more space than it needs (and it does) and the array size is grown insufficiently.
Your test didn't proove anything.
|
|---|