ecuguru has asked for the wisdom of the Perl Monks concerning the following question:
$dir correctly prints out /test/*.*#Works my @allfiles = </test/*.txt>; foreach my $item (@allfiles) { #Fails my $dir = '/test/*.txt'; my @allfiles = <$dir>; foreach my $item (@allfiles) {
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Directory location from scalar
by Zaxo (Archbishop) on Aug 29, 2005 at 05:56 UTC | |
|
Re: Directory location from scalar
by sk (Curate) on Aug 29, 2005 at 05:54 UTC | |
|
Re: Directory location from scalar
by Roger (Parson) on Aug 29, 2005 at 08:52 UTC |