# my @files = glob "$path/*"; use File::Glob ':glob'; my @files = bsd_glob( "$path/*"); #includes spaces