in reply to Cannot copy from network drive

Not a Perl answer. You say "network drive" but are showing a local drive in the code. If your real code is trying to access a network drive are you running this code from a scheduled job or some other non-interactive process? Have you tried to connect to the file using it's UNC path, i.e. "//server/share/path" ? Some non-interactive jobs may not have access to the network shares because of the permissions of the user that they run as and you will almost certainly not have any mapped network drives unless you have explicitly done it in your code. You should also be printing $! when you encounter an error as this will help diagnose the problem.
/J\

Replies are listed 'Best First'.
Re: Re: Cannot copy from network drive
by skyler (Beadle) on Jun 11, 2003 at 14:43 UTC
    Gellyfish, Thanks for your answer. How would you recode the code to make it UNC? I'm reading the file and the path is the last field. I'll appreciate your help.