in reply to Directory Listing to an Array
sub ls { my $path = @_ ? shift : "."; local *DIR; opendir DIR, $path or die "can't ls $path: $!"; return grep { $_ ne "." and $_ ne ".." } readdir DIR; }
_____________________________________________________
Jeff[japhy]Pinyan:
Perl,
regex,
and perl
hacker, who'd like a (from-home) job
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Directory Listing to an Array
by cybear (Monk) on Apr 17, 2002 at 14:56 UTC | |
by japhy (Canon) on Apr 17, 2002 at 15:13 UTC |