Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: File transfer not working on server

by izut (Chaplain)
on Aug 21, 2006 at 18:58 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://568646]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-04-26 04:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found