Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
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) {
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Pass variable as Directory
by Zaxo (Archbishop) on Aug 28, 2005 at 07:31 UTC | |
by ecuguru (Monk) on Aug 29, 2005 at 05:56 UTC | |
|
Re: Pass variable as Directory
by davido (Cardinal) on Aug 28, 2005 at 07:27 UTC |