I have a folder, its name:
drwxr-xr-x. 2 user user 4096 Aug 2 18:30 folder name [www.website.com]
but when i use glob as follows:
my @files = glob ("/home/user/Downloads/folder name [www.website.com]/*"); print "@files/n";
it does not list files in the directory, the result is as follows:
/home/user/Downloads/folder name
I tried to avoid spaces and square brackets as follows:
/home/user/Downloads/folder\ name\ \[www.website.com\]
But the result is the same, which could be my mistake, or what can be done to improve my code?
Thanks in advance
perl
Davico
source share