http://www.perlmonks.org?node_id=143143

Bishma has asked for the wisdom of the Perl Monks concerning the following question:

I'm in the proccess of writing a short cgi script and am looking for a little help. I need to be able to pick 5 random elements out of an ever growing array and all 5 have to be differnt elements from the array. Is there a simple way to do this? The only way I can come up with is painfully similar to a bubble sort and I really don't want to have to do all that coding. Thanks in advance