Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Finding un-paired files in a directory

by Abigail-II (Bishop)
on Dec 02, 2003 at 13:13 UTC ( [id://311600]=note: print w/replies, xml ) Need Help??


in reply to Finding un-paired files in a directory

I'd use something like (untested):
opendir my $dh => $dir or die; my %files; @files {map {lc} readdir} = (); closedir $dir; my @missing = grep {/^(.*)\.did$/s && !exists $files {"$1.mrg"} keys % +files;

Abigail

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-19 05:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found