in reply to Re^3: perl glob and an exception
in thread perl glob and an exception

You are right, Sir :) The question was about - how glob can tell me if there is an issue with a file system. E.g. I don't have a permissions etc.

Replies are listed 'Best First'.
Re^5: perl glob and an exception
by Anonymous Monk on Sep 25, 2015 at 10:02 UTC
    :)see glob does what it does, if you want something different, make your own sub glob
Re^5: perl glob and an exception
by Preceptor (Deacon) on Sep 29, 2015 at 15:52 UTC

    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)