in reply to Re: Problem stripping directory listing
in thread Problem stripping directory listing
Update: thanks to zengargoyle's note below. Ooops!use IO::Dir; my @users = (IO::Dir->new($home) or die "$home: $!")->read; print join "\n", @users, '';
my @users = grep { !/^\./ and -d "$home/$_" } (IO::Dir->new($home) or die "$home: $!")->read;
jdporter
The 6th Rule of Perl Club is -- There is no Rule #6.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Problem stripping directory listing
by zengargoyle (Deacon) on Feb 15, 2003 at 14:02 UTC |