Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Regex negative lookahead

by thargas (Deacon)
on Apr 25, 2014 at 13:54 UTC ( [id://1083790]=note: print w/replies, xml ) Need Help??


in reply to Regex negative lookahead

If you want to make changes to files, you might want to check that the entry that readdir returned is in fact a file (see "-f"). This will have the side-effect of ignoring "." and ".." as those are directories. readdir will show all entries in the directory (files, directories, named-pipes, ...)

Speaking of dot-files, in unix (and others), files whose names begin with a "." are considered to be "hidden" and, by default, most programs won't show them. Since readdir shows you everything (like you get from ls -a), you get to ignore them yourself in your code.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-20 15:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found