Perl Monk, Perl Meditation | |
PerlMonks |
Re: count file in directoryby johngg (Canon) |
on Sep 04, 2013 at 09:42 UTC ( [id://1052273]=note: print w/replies, xml ) | Need Help?? |
If you follow hdb's advice you will see that you have two files and two entries called '.' and '..' which are links to the current and parent directories respectively. All directories contain those two entries so you will always see two more items than you might expect. Cheers, JohnGG
In Section
Seekers of Perl Wisdom
|
|