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

Re: Fast file and directory operations

by Roy Johnson (Monsignor)
on Mar 11, 2008 at 19:55 UTC ( [id://673594]=note: print w/replies, xml ) Need Help??


in reply to Fast file and directory operations

I can't find the difference between opendir and readdir, and just using chdir and doing a foreach loop
Try using a while loop with readdir.

Update: I may have misread. I thought you were saying you used a foreach with readdir. See opendir slower than ls on large dirs?.


Caution: Contents may have been coded under pressure.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-04-25 11:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found