develooper Front page | perl.beginners | Postings from March 2002

how to randomly choose mp3 from dir, print mp3_filename for emailing to a list

Thread Previous | Thread Next
From:
K Clark
Date:
March 22, 2002 05:34
Subject:
how to randomly choose mp3 from dir, print mp3_filename for emailing to a list
Message ID:
20020322133008.GA15918@quantifier.org
linux environment. have o'reilly cookbook & learning perl (2nd ed.).

desire to randomly choose a filename of mp3 files in a directory
containing only mp3's. 

then, write the name of this filename to a file that has
"http://myurl.org/mywebpath/..." inserted before the filename so that i
end up with a file that can be inserted into an email (or mailed
straightaway to a list).

i am confused about alot, but first, do i need to read the directory
filenames into a list, and then randomly choose one, or is their a
function which will do so? 

if such a function does exist and is inside one of the books mentioned,
merely pointing me in the right direction would be very helpful. i do
want to figure this out.

ken
_____________________________________
http://quantifier.org GnuPG: 7C828670
perfect guest:
	One who makes his host feel at home.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About