pcadv has asked for the wisdom of the Perl Monks concerning the following question:
---end code---use Cwd; my $dir = getcwd; opendir (DIR, $dir) or die $!; my @dir = readdir DIR; foreach my $item (@dir) { print "$item," if -r $item and -w $item and -x $item and $item =~ /^[a +-zA-Z]/ ; # Readable and not writable }
20040208 Edit by ysth: code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: chomp a List
by blokhead (Monsignor) on Feb 07, 2005 at 22:01 UTC | |
by ZlR (Chaplain) on Feb 08, 2005 at 09:26 UTC | |
by tirwhan (Abbot) on Feb 08, 2005 at 12:12 UTC | |
by ZlR (Chaplain) on Feb 08, 2005 at 12:40 UTC | |
by Anonymous Monk on Feb 08, 2005 at 15:57 UTC | |
|
Re: chomp a List
by cog (Parson) on Feb 07, 2005 at 23:20 UTC | |
|
Re: chomp a List
by sh1tn (Priest) on Feb 08, 2005 at 00:06 UTC |