Ya gotta write it yourself. You should look at the function glob() and rand() for starters.
> -----Original Message----- > From: K Clark [mailto:[EMAIL PROTECTED]] > Sent: Friday, March 22, 2002 8:30 AM > To: [EMAIL PROTECTED] > Subject: how to randomly choose mp3 from dir, print mp3_filename for > emailing to a list > > > 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. > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > ---------------------------------------------------------------------------- -------------------- The views and opinions expressed in this email message are the sender's own, and do not necessarily represent the views and opinions of Summit Systems Inc. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]