in reply to Re^3: execution problem if dir name has space in it's name
in thread execution problem if dir name has space in it's name

No quite. You need use File::Glob qw( glob );. Builtins aren't overridden unless explicitly imported.

$ perl -le' print for glob "a b"' a b $ perl -le'use File::Glob; print for glob "a b"' a b $ perl -le'use File::Glob qw( glob ); print for glob "a b"' a b