I have the following:
@duplicate = glob "files/$department/*.txt"; foreach $item (@duplicate) { if ($item eq "files/$department/$number.txt") { $go_sub = 'yes'; } }
I have some directories that contain spaces and when a directory that does contain spaces the array doesn't match $item properly.
I think I've tried most if not all of the combinations of single/double quotes that makes sense to me....
Ideas, suggestions?
Thanks!
In reply to File::DosGlob by lapsan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |