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

Re: File::Glob Ignores Dot Files

by Zed_Lopez (Chaplain)
on Nov 25, 2003 at 18:45 UTC ( #310014=note: print w/ replies, xml ) Need Help??


in reply to File::Glob Ignores Dot Files

They take regexes as arguments and * doesn't work the same way as in your shell. Try '/.*' at the end.

Updated: Oops. Listen to the above monks. It's not a regexp. Note also that their code will return . and .. and you might want a grep to exclude them.


Comment on Re: File::Glob Ignores Dot Files
Replies are listed 'Best First'.
Re: Re: File::Glob Ignores Dot Files
by ZdrozZ (Scribe) on Nov 26, 2003 at 10:09 UTC
    In shell commands I use .[!.]* It works if you don't have files with two leading ..

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (16)
As of 2015-07-29 17:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (267 votes), past polls