I am doing a readdir.
Taking the filenames that are found and trying to rename them.

Opendir 
@files = Readdir 

Foreach @files
        parse filename
        $newfile = newfile name based on parsed name
        push (@rename,[$_,$newfile])

Foreach @rename
        rename $$_[0], $$_[1] or die ("NO $!\n")

I guess I could send all the code but that is pretty much what is taking
place. I have tried to add a closedir before the @rename loop but it
does nothing.

Paul


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

Reply via email to