---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
In reply to chomp a List by pcadv
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |