Scripting a job on a server

Hello,

I have written a script to be run on a remote server and was wondering why the string:

my \$doc = \$Documents {file.xtd}

would save all the files in the root folder to the script output. It only does it when I run it on a remote server. When I debug the script on the local machine, the script acts as intended. I am in no way a programmer, so this may be an obvious answer, but I have tried to look through Perl docs to locate any possible reason, but have been unsuccessful. Any help would be appreciated.


Nick