Help for this page

Select Code to Download


  1. or download this
          opendir (DIR, $backupdir) or die $!;
          my @files = readdir DIR;
    ...
             copy($filename, $backful); 
             print "Backup copy of the file has been created\n";
          }
    
  2. or download this
          if (-e $backful) {
             print "Backup copy of $filename exists!\n";
    ...
             copy($filename, $backful); 
             print "Backup copy of the file has been created\n";
          }