thanks!#Works when I assign the directory from a string my @files = </Library/WebServer/Documents/*.txt>; #Does NOT work when I assign the directory from a variable my $Dir = '/Library/WebServer/Documents/*.txt'; my @files = <$Dir>; foreach my $item (@files) {
In reply to Pass variable as Directory by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |