in reply to Check for a new file in a directory

You're populating @difference with files in the directory that aren't in the log, as well as files in the log that aren't in the directory. Hence deleted files are showing up...
foreach my $logName (keys %loglist) { unless (defined $dirlist{$logName}) { push @difference, "$logN +ame";} }
May be omitted.

Replies are listed 'Best First'.
Re: Re: Check for a new file in a directory
by nfaber (Initiate) on Apr 21, 2004 at 16:33 UTC
    Thank you insensate! It worked. Leave it to the monks.