in reply to Duplicate Directory Names
#!/usr/bin/perl -w use strict; use File::Find; find(\&wanted,'.'); use vars qw(%dirseen); sub wanted { return unless -d $_; if ($dirseen{$_}) { print "Duplicate directory name $_ in $File::Find::dir\n"; } $dirseen{$_}++; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Duplicate Directory Names
by tperdue (Sexton) on Oct 18, 2003 at 02:11 UTC | |
by sgifford (Prior) on Oct 18, 2003 at 02:52 UTC |