Loading ...
Sorry, an error occurred while loading the content.

Error in Copying File

Expand Messages
  • joshypy
    Hello friends, Here is my Code, use File::Copy; my $filename= hello.txt ; my $filetobecopied = $filename ; my $newfile = $filename . _temp.txt ;
    Message 1 of 1 , Oct 5, 2006
    • 0 Attachment
      Hello friends,

      Here is my Code,

      use File::Copy;

      my $filename="hello.txt";
      my $filetobecopied = "$filename";
      my $newfile = "$filename"."_temp.txt";
      copy($filetobecopied, $newfile) or die "File cannot be copied.";

      I`m getting the error message:

      &Config::AUTOLOAD failed on Config::launcher at C:/Perl/lib/Config.pm
      line 72.

      What will be the problem?

      Joshy
    Your message has been successfully submitted and would be delivered to recipients shortly.