How about combining glob with grep?
my @readable = grep { -r } glob "*.txt";
OK, so you'll have to implement a bunch of tests if you want check multiple things, but that's because glob - for efficiency reasons - does nothing other than read a directory (See: perldoc -X)
In reply to Re^5: perl glob and an exception
by Preceptor
in thread perl glob and an exception
by proxy-man
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |