Single quotes will not work (try it in a cmd window). You need to use double quotes.
print glob "\"$dir/*\""; Should work better.
In reply to Re: Whitespace protection in glob expression for Windows network paths
by SuicideJunkie
in thread Whitespace protection in glob expression for Windows network paths
by Another Ed
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |