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
In reply to Re^2: perl glob and an exception
by proxy-man
in thread perl glob and an exception
by proxy-man
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |