in reply to Re: perl glob and an exception
in thread perl glob and an exception
user@host: mkdir ~/test
user@host: touch ~/test/file1.txt
user@host: chmod 000 ~/test
### perl code my $dir = '/home/user/test'; my @files = eval { glob("$dir/*.txt") }; print "$@" if $@; # here is no runtime error print Dumper(\@files); # shows an empty list
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: perl glob and an exception
by Corion (Patriarch) on Sep 25, 2015 at 09:53 UTC | |
by proxy-man (Initiate) on Sep 25, 2015 at 09:55 UTC | |
by Anonymous Monk on Sep 25, 2015 at 10:02 UTC | |
by Preceptor (Deacon) on Sep 29, 2015 at 15:52 UTC |