readdir Questions

6

Solved

I need to search for files in a directory that begin with a particular pattern, say "abc". I also need to eliminate all the files in the result that end with ".xh". I am not sure how to go about do...
Supernova asked 11/6, 2009 at 21:0

1

Solved

See also: Where in the documentation does it say that while tests readdir for definedness?. (Not a duplicate; just closely related.) Many people treat the loop below as idiomatic: while (define...
Celt asked 9/5, 2009 at 14:42

3

Solved

When I read a directory in Perl with opendir, readdir, and closedir, the readdir function doesn't seem to read the files in any specific order (that I can tell). I am reading a directory that has ...
Pricking asked 12/1, 2009 at 17:22

© 2022 - 2024 — McMap. All rights reserved.