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/. > > 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/";
The backslash disappears immediately as part of the usual double-quotish interpolation. > So it may have something to do with how the glob parses the input passed > to it. Nope -- just the double-quotes. % touch '/tmp/path with spaces' % cat glob.pl my %pats = ( good => '/tmp/path\ with\ space*', bad => "/tmp/path\ with\ space*", ugly => "/tmp/path\\ with\\ space*" ); local ($\, $,) = ("\n", " :: "); while (my ($k,$v) = each %pats) { print $k, $v, glob($v); } -- Steve -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]