Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: count file in directory

by johngg (Canon)
on Sep 04, 2013 at 09:42 UTC ( [id://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

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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1052273]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2024-04-19 17:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found