Those are directories. Look at the code you've run, it tests for files ( -f $_). Directories are not regular files. Tutorials->Basic debugging checklist.
Update: Pleases don't get into the habbit of blindly running code which you don't understand.
In reply to Re^5: Copy dir with space (Path::Tiny)
by marto
in thread Copy dir with space
by adriang
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |