Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Finding un-paired files in a directory

by Abigail-II (Bishop)
on Dec 02, 2003 at 13:13 UTC ( #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? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (1)
As of 2023-09-22 04:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?