in reply to Re: Re: copy files to the nonpermanent directory
in thread copy files to the nonpermanent directory

That's because Hena should have used File::Spec::Functions instead. Plain File::Spec uses the OO approach, thus requiring use of class methods, like:
File::Spec->rootdir()

File::Spec::Functions is a lot easier to use.