All right, first off I'm a total perl newbie (about 2 days now) and am
looking for some resources on how to do a few things. Resources, meaning,
don't tell me how to write the script just point me in the right direction
of where to start. Also this may be an easy thing to do but remember I'm
still learning.

So heres what I'm trying to do, I have a few folders with about 50-100 mp3s
that I want to go threw and rename each file. Well going threw selecting
them and then renaming gets rather boring so I'm wanting to write a perl
script that will do this for me. Something like:

you specify the folder name
it opens that folder
gets the first file
prints how many files are left
prints the file name
asks for new name
renames file
gets next filename
then repeats

So what I figure, I'll use a 'for' loop, get the file name, store it in
$ThisName, get the new file name from $NewName=<>, then $ThisName=$NewName,
then rename the actual file. To me the logic seems like it would work, but
as I said, I'm new to perl. Is this the right direction that I need to be
going? And can someone point me as to where I can find info on getting
filenames from folders then writing new names. Thanks for the help!

jeffh



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to