Think about Loose Coupling | |
PerlMonks |
Re: foreach vs. while inside a directory tranversing subroutineby wrog (Friar) |
on May 26, 2015 at 03:48 UTC ( [id://1127757]=note: print w/replies, xml ) | Need Help?? |
it might be instructive to bracket the traverse_file in the first version with print statements and see what you get, e.g., replace the inner
with with a suitable our $count=0 at top level somewhere.
In Section
Seekers of Perl Wisdom
|
|