Re: Glob and space in directory name

2003-11-28 Thread R. Joseph Newton
Rob Dixon wrote: > Joseph wrote: > > > > Just remember that the enclosing double-quotes are always a part > > of Windows long filenames. When the the sytem processes the > > string expression offered as an argument, it takes only the > > textual content, and strips the quuotes. Enclose the whole

Re: Glob and space in directory name

2003-11-28 Thread Rob Dixon
Joseph wrote: > > Just remember that the enclosing double-quotes are always a part > of Windows long filenames. When the the sytem processes the > string expression offered as an argument, it takes only the > textual content, and strips the quuotes. Enclose the whole > string, including double-qu

Re: Glob and space in directory name

2003-11-28 Thread R. Joseph Newton
"Wagner, David --- Senior Programmer Analyst --- WGO" wrote: > Boris Shor wrote: > > And when I rename the directory to "House 98" (space instead of > > underscore), the following does not: > > > > @filelist = glob("w:/stleg/Colorado/House 98/*.htm"); > I tried a number of things and was n

Re: Glob and space in directory name

2003-11-27 Thread Rob Dixon
David --- Senior Programmer Analyst --- Wgo Wagner wrote: > > > Note: I went into File::Glob and it gives the following: > > Since v5.6.0, Perl's CORE::glob() is implemented in terms of > bsd_glob(). [...] Due to historical reasons, CORE::glob() will also > split its argument on whitespace, treatin

Re: Glob and space in directory name

2003-11-26 Thread John W. Krahn
Boris Shor wrote: > > Why does the following work (eg, give me an array filled with matching file > names): > > @filelist = glob("w:/stleg/Colorado/House_98/*.htm"); > > And when I rename the directory to "House 98" (space instead of underscore), > the following does not: > > @filelist = glob("

Re: Glob and space in directory name

2003-11-26 Thread Steve Grazzini
David Wagner wrote: > Dan Muey wrote: @filelist = glob("w:/stleg/Colorado/House_98/*.htm"); And when I rename the directory to "House 98" (space instead of underscore), the following does not: >> >> The reason is you escaped the space in $MyLoc but not in /House 98/. > > Under

RE: Glob and space in directory name

2003-11-26 Thread Dan Muey
> Understood, but I know that the space within a > directory name must have the \ otherwise it won't work, but > if I try say ( for my testing purposes): > > $MyLoc = "d:/00Common\ Perl/"; > @filelist = glob($MyLoc . "pl0*.pl"); > > The only thing that prints is > d:/00Common >

RE: Glob and space in directory name

2003-11-26 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Dan Muey wrote: >>> @filelist = glob("w:/stleg/Colorado/House_98/*.htm"); >>> >>> And when I rename the directory to "House 98" (space instead of >>> underscore), the following does not: >>> > > > The reason is you escaped the space in $MyLoc but not in /House 98/. > If you escape the space in

RE: Glob and space in directory name

2003-11-26 Thread Dan Muey
> > @filelist = glob("w:/stleg/Colorado/House_98/*.htm"); > > > > And when I rename the directory to "House 98" (space instead of > > underscore), the following does not: > > The reason is you escaped the space in $MyLoc but not in /House 98/. If you escape the space in /House 98/ (IE /House\

Re: Glob and space in directory name

2003-11-26 Thread Daniel Staal
--As off Wednesday, November 26, 2003 3:58 PM -0500, Boris Shor is alleged to have said: Why does the following work (eg, give me an array filled with matching file names): @filelist = glob("w:/stleg/Colorado/House_98/*.htm"); And when I rename the directory to "House 98" (space instead of under

RE: Glob and space in directory name

2003-11-26 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Boris Shor wrote: > Why does the following work (eg, give me an array filled with > matching file names): > > @filelist = glob("w:/stleg/Colorado/House_98/*.htm"); > > And when I rename the directory to "House 98" (space instead of > underscore), the following does not: > > @filelist = glob("w:/

Glob and space in directory name

2003-11-26 Thread Boris Shor
Why does the following work (eg, give me an array filled with matching file names): @filelist = glob("w:/stleg/Colorado/House_98/*.htm"); And when I rename the directory to "House 98" (space instead of underscore), the following does not: @filelist = glob("w:/stleg/Colorado/House 98/*.htm"); Th