Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Re: Re: Counting only certain files...

by SysAdm (Novice)
on May 18, 2001 at 09:26 UTC ( [id://81436]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Counting only certain files...
in thread Counting only certain files...

I went with this...

my $numfiles = 0; opendir DIR, "$config{'basepath'}$key" or &oops("Category +directory $key could not be opened."); readdir DIR;readdir DIR; while ($_ = readdir DIR){$numfiles++ if /\d.dat/o } closedir DIR;


My files actually end with .dat, therefore I added the extension...

I want to thank you all for your help... GOD I love this site... (no pun intended!)

_______SysAdm

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-04-20 07:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found