Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: count file in directory

by johngg (Abbot)
on Sep 04, 2013 at 09:42 UTC ( #1052273=note: print w/ replies, xml ) Need Help??


in reply to count file in directory

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


Comment on Re: count file in directory
Replies are listed 'Best First'.
Re^2: count file in directory
by joaase (Initiate) on Sep 04, 2013 at 10:48 UTC
    Thank JohnGG. That explain why i see 4 count insted of 2. /Joakim

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1052273]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (10)
As of 2015-09-04 11:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred temperature scale is:










    Results (135 votes), past polls