in reply to File::DosGlob
If you use File::Glob, then spaces in file wildcards are just fine.
If you use File::DosGlob and then read the documentation, then you will find you can quote the spaces in your wildcard with " or \:
These also work for me without use File::DosGlob (at least when running under Win32 -- I haven't tested this elsewhere). - tye (but my friends call me "Tye")use File::DosGlob; my @matches= glob( qq<"$file"> ); ( my $slashed= $file ) =~ s/\s/\\\1/g; my @files= glob( $slashed );
|
|---|