ytjPerl has asked for the wisdom of the Perl Monks concerning the following question:
I do not know how to put two directories files into one array correctly. Please help. Thanksmy Dir1 = "d:/xxxxxx"; my Dir2 = "d:/xxxxxx"; my @files = glob ("$Dir1/*" \& "$Dir2/*"); for my $file (@file) {print $file, "\n"}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: list two paths files into one array (updated)
by haukex (Archbishop) on Nov 13, 2017 at 20:44 UTC | |
by ytjPerl (Scribe) on Nov 13, 2017 at 21:03 UTC | |
|
Re: list two paths files into one array
by pryrt (Abbot) on Nov 13, 2017 at 20:58 UTC | |
|
Re: list two paths files into one array
by 1nickt (Canon) on Nov 14, 2017 at 00:20 UTC | |
|
Re: list two paths files into one array
by Laurent_R (Canon) on Nov 13, 2017 at 23:56 UTC | |
by pryrt (Abbot) on Nov 14, 2017 at 00:54 UTC | |
by Laurent_R (Canon) on Nov 14, 2017 at 08:28 UTC |