#Works when I assign the directory from a string my @files = ; #Does NOT work when I assign the directory from a variable my $Dir = '/Library/WebServer/Documents/*.txt'; my @files = <$Dir>; foreach my $item (@files) {