Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: File transfer not working on server

by Anonymous Monk
on Aug 21, 2006 at 19:12 UTC ( [id://568653]=note: print w/replies, xml ) Need Help??


in reply to Re: File transfer not working on server
in thread File transfer not working on server

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.
  • Comment on Re^2: File transfer not working on server

Replies are listed 'Best First'.
Re^3: File transfer not working on server
by izut (Chaplain) on Aug 21, 2006 at 19:26 UTC

    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.

        Modify your statement to this:

        unless (-d $destinationFile) { die "Destination directory not found: $!"; }

        It will die and show you why.

        Igor 'izut' Sutton
        your code, your rules.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2024-04-18 14:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found