----- Original Message -----
From: [EMAIL PROTECTED]
Date: Wednesday, August 17, 2005 7:27 am
Subject: Shuffling an file

> Hello,
Hi,
> 
> I am working on a playlist managment program in perl - I need a 
> way to
> shuffle the playlist - the playlist format is very simple - one
> filename on each line.
perldoc -q shuffle
HTH,
Mark G.


> 
> Each file name is a reletive path, i.e:
> 
> folder1/file1.mp3
> folder2/file2.mp3
> 
> If possible I would like the file to be shuffled so that whenever
> possible, there are no 2 files from the same folder next to each
> other.
> 
> In the origional file, pre-shuffling, the files are sorted into 
> folders, i.e:
> 
> folder1/file1.mp3
> folder1/file2.mp3
> folder2/file3.mp3
> ......
> 
> It would be an adequate solution to just cycle through all the 
> folders, like:
> 
> folder1/file1.mp3
> folder2/file1.mp3
> folder3/file1.mp3
> folder1/file2.mp3
> .......
> 
> Thanks very much for any help with this.
> 
> -- 
> 
> Dave
> All us base are belong to you.
> 
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
> 
> 
> 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to