Search notes:

Perl module File::DirCompare

#!/usr/bin/perl
use warnings; use strict;

use File::DirCompare;

# use File::Basename;  // for dirname and basename

if (@ARGV < 2) {
    print "$0 <dir 1> <dir 2>\n";
    exit;
}


File::DirCompare -> compare($ARGV[0], $ARGV[1], sub {

  my ($f1, $f2) = @_;

  if (! $f2) {

#     printf "> %s: %s\n", dirname($f1), basename($f1);
      printf "> $f1\n";

  } elsif (! $f1) {

#     printf "< %s: %s\n", dirname($f2), basename($f2);
      printf "< $f2\n";

  } else {

      print "! $f1 and $f2\n";

  }

});
Github repository PerlModules, path: /File/DirCompare/script.pl
Perl modules.

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1741107233, '3.147.63.162', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/Perl/modules/File/DirCompare/index(69): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78