Codmate has asked for the wisdom of the Perl Monks concerning the following question:
opendir FOLDERS, $path or die "opendir $path - $!"; for ( grep /[a-z]/, readdir FOLDERS ) { my $st = stat( $path.$_ ); my $mode = $st->mode; print $mode; } closedir FOLDERS;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to determine whether a dir entry is a directory?
by ozone (Friar) on Aug 22, 2001 at 18:25 UTC | |
|
Re: How to determine whether a dir entry is a directory?
by jffry (Hermit) on Feb 14, 2006 at 17:05 UTC | |
|
Re: How to determine whether a dir entry is a directory?
by RAS230 (Acolyte) on Feb 21, 2008 at 01:46 UTC | |
|
Re: How to determine whether a dir entry is a directory?
by I0 (Priest) on Aug 22, 2001 at 21:23 UTC |