Paul Kraus wrote:
> 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.Hi Paul. You need to prefix $$_[0] with its full path, otherwise you're working in your default directory and the files won't exist. Hence you'll get a Permission Denied error. HTH, Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
