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.