Perlfunc / sort: The comparison function is required to behave. If it returns inconsistent results (sometimes saying $x[1] is less than $x[2] and sometimes saying the opposite, for example) the results are not well-defined.
I guess that means you don't really know what your code will give you. (Which kind of seems to be the point of it, but in another way. :))
ihbIn reply to Re: Re: Pulling random elements from hash
by ihb
in thread Pulling random elements from hash
by Anonymous Monk
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |