Gossamer Forum
Home : General : Perl Programming :

simple m3u creator

Quote Reply
simple m3u creator
i have never used perl..

i want to create a batch m3u creator to run on either windows xp and/or 2000.
this is my plan so far

something like....
**************************************************************
selectfolder = (get submitted folder location)
endfolder = (get destination folder)
baseurl = (get submitted base url)

# start loop

for each file in 'selectfolder' (

songname = ( get 'selectfolder' + 'filename' + .mp3 );


# create m3u file

createfile ( create file ( 'songname' + .m3u) );

writefile ( write ( 'baseurl' + songname + .mp3 ) );

saveinto ( 'endfolder' );

)

do until end of folder files

end loop

close
*****************************************

this is my first perl script attemp.. does anyone have any suggestions ?
is this the right way to go about this ?
or does any one have any sample scripts i can check out...

any thoughts

Last edited by:

mapnapkin: Sep 13, 2003, 1:57 AM
Quote Reply
Re: [mapnapkin] simple m3u creator In reply to
Hey mapnapkin,

Check out http://learn.perl.org/. Look through the Books section there. They have a very good list of perl books to get you going. If I remember correct, the Online Library link at the top has a book or two available for download.

Regards,
Charlie
Quote Reply
Re: [Chaz] simple m3u creator In reply to
thanks for the link... already had it, i would expect nothing more from the perl community.

i am reading two books on php and was planning on starting perl next.

fortunately i know asp and was able to finish it in about an hour.. just wanted to try perl..Unimpressed