12 while (defined(my $rel = <>)) {
14 my $saved = rel2saved($rel);
17 my $abs = File::Spec->rel2abs($rel, $ENV{HOME});
19 my $current_st = stat($abs);
20 my $saved_st = stat($saved);
22 if ($current_st->mtime < $saved_st->mtime &&
23 compare($abs, $saved) != 0) {
24 print "Copying $saved to $abs...\n";
25 unlink $abs or die $!;
26 copy($saved, $abs) or die $!;