Your shuffle algorithm is not very good. Better to use the one from the FAQ: How do I shuffle an array randomly? or use the shuffle function from the List::Util module.
In reply to Re: mem usage
by jwkrahn
in thread mem usage
by halfcountplus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |