in reply to perl's glob function - argument passing
If you read the glob documentation, you see that it is implemented (since perl 5.6) by File::Glob. There, you read that it's implemented "in terms of" File::Glob's bsd_glob routine. But apparently there's a functional difference between glob and bsd_glob: the former considers its argument to be one or more whitespace-sepearated patterns, whereas the latter considers it a single argument, even if it includes whitespace. So I wonder: does this long path you have contain any spaces? If so, try loading File::Glob and using its bsd_glob routine instead.
Another avenue would be to try another module which provides an alternative glob, such as File::DosGlob and FastGlob. (All these modules let you override the core glob with their version, if you want.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: perl's glob function - argument passing
by bart (Canon) on Jan 17, 2007 at 12:20 UTC |