Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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
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 exploiting the Monastery: (6)
As of 2014-11-29 10:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (204 votes), past polls