Re: How do I glob with escaped spaces in a directory

2003-11-06 Thread david
Dan Anderson wrote: > When I use: > > my @foo = glob "/foo/bar baz/*"; > or > my @foo = glob "/foo/bar\ baz/*"; > > Glob doesn't return the files in those directories, @foo equals > ("/foo/bar"); > > However, if I do: > > my @foo = glob "/foo/bar*baz/*"; > > @foo equals an array with all the

Re: How do I glob with escaped spaces in a directory

2003-11-06 Thread drieux
On Thursday, Nov 6, 2003, at 10:21 US/Pacific, Dan Anderson wrote: [..] How do I escape spaces? Perldoc glob doesn't say. [..] an interesting problem, one thing that may influence the problem is how your underlying shell does the 'expansion' - as the perldoc -f glob notes, with perl 5.6 this is

How do I glob with escaped spaces in a directory

2003-11-06 Thread Dan Anderson
When I use: my @foo = glob "/foo/bar baz/*"; or my @foo = glob "/foo/bar\ baz/*"; Glob doesn't return the files in those directories, @foo equals ("/foo/bar"); However, if I do: my @foo = glob "/foo/bar*baz/*"; @foo equals an array with all the files in "/foo/bar\ baz/", which is what I"m tryi