Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: File transfer not working on server

by izut (Chaplain)
on Aug 21, 2006 at 18:58 UTC ( #568646=note: print w/replies, xml ) Need Help??


in reply to File transfer not working on server

$destinationFile points to a file or a directory? Is Perl throwing some error or warning message when executing copy() instruction?

Igor 'izut' Sutton
your code, your rules.

Replies are listed 'Best First'.
Re^2: File transfer not working on server
by Anonymous Monk on Aug 21, 2006 at 19:12 UTC
    distinationFile points to directory.

    I left out in my example but I am checking for file existence earlier in the script using the -e condition.

      Are you using use strict; and use warnings;? Again, is Perl throwing some error or warning? Is it dieing? If you provide more information, you will get better answers.

      Igor 'izut' Sutton
      your code, your rules.

        yes i am using strict and warnings. The message I am getting is coming from my condition here:
        if(!-d $destinationFile) { print "Destination Directory not found."; }
        Saying: Destination Directory not found.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://568646]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (1)
As of 2021-02-25 03:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?