in reply to Re: what does rand[] return?
in thread what does rand[] return?

If i repeat execution i get the same reference over and over again for this anon array. I don't know why

I am as ignorant as you are, but if I was perl,
I would make life easy and return the next possible free address that was big enough to store your anonymous array reference. If you freed that up - no longer use it - and asked for a new one, I would lazily give you just the one that I had before.

Cheers, Sören