> >Impossible? I wonder how people manage to sort arrays then....
> >
> > @array = shuffle @array; # Tada!
>
> This is not an in-place-shuffle. The array is copied, shuffled, and copied
> back in that process. (Or am I missing some magic here?)
I'd be surprised if the optimizer does take that to mean:
@array = @{ \shuffle @array };
so there is only the temp. copy. No return copy, I doubt someone missed
that on their profiler!
Jonathan Paton
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com