in reply to File::DosGlob
Well, I don't know about File::DosGlob in particular, but I know that the builtin glob doesn't work with spaces in the filenames (see perlop). Perhaps it best to just readdir and grep yourself.
opendir DIR, $directory; @duplicate = map { "$directory/$_" } grep { /\.txt$/ } readdir DIR; closedir DIR;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: File::DosGlob
by myocom (Deacon) on Jan 04, 2001 at 23:37 UTC | |
by tye (Sage) on Jan 05, 2001 at 01:37 UTC | |
by myocom (Deacon) on Jan 05, 2001 at 01:50 UTC |