in reply to Re^6: File:Find pattern match question
in thread File:Find pattern match question
You originally had this to flag occurences:
$dirs{$File::Find::dir} = 1;
and this to count occurences:
++$dirs{$File::Find::dir};
Because you weren't flagging the right thing, the code for that (which, as you say below, "Works perfectly! :-) Thank you very much! Cheers"), has been changed to:
$dirs{$File::Find::name} = 1;
Can you work out what you need to do so that you'd now be counting the right thing?
-- Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: File:Find pattern match question
by RockE (Novice) on Nov 03, 2013 at 11:52 UTC | |
by kcott (Archbishop) on Nov 13, 2013 at 16:44 UTC |