File: 1.pl

package info (click to toggle)
libfile-modified-perl 0.10-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 116 kB
  • sloc: perl: 301; makefile: 2
file content (15 lines) | stat: -rwxr-xr-x 301 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use lib '..';
use Dependencies;

my $d = Dependencies->new(Files=>['Import.cfg','Export.cfg']);

while (1) {
  my (@changes) = $d->changed;
  if (@changes) {
    print "$_ was changed\n" for @changes;
    $d->update();
  } else {
    print "No changes detected.\n";
  };
  sleep 5;
};