Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Check for a new file in a directory

by insensate (Hermit)
on Apr 21, 2004 at 15:52 UTC ( [id://347037]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://347037]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-24 23:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found