bryanj21 has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl
my @dirs;
my $sth;
my $gt;
my $dir = '/home/vendors/test/public_html';
opendir D,$dir;
@dirs=grep(!-d, readdir D);
closedir D;
foreach (sort @dirs) {print "$_\n"};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regex and perl directories question
by mkmcconn (Chaplain) on Nov 20, 2001 at 04:31 UTC | |
by bryanj21 (Initiate) on Nov 20, 2001 at 04:48 UTC | |
|
Re: Regex and perl directories question
by growlf (Pilgrim) on Nov 20, 2001 at 04:38 UTC |