Well if you do ;
you will see that perl treats the reference to the anonymous array [10] as a number . So what you do is like :print 0 + [10] ;
rand number
In my case this number is 27783332 and the array reference is 0x1a7f0a4 ( that you can see by doing print [10]) which is 27783332 in hex ...
If i repeat execution i get the same reference over and over again for this anon array. I don't know why but that's another problem ;)
In reply to Re: what does rand[] return?
by secret
in thread what does rand[] return?
by si_lence
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |