We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9781d5d commit 67b76cfCopy full SHA for 67b76cf
doc/Language/enumeration.pod6
@@ -38,11 +38,12 @@ sub check-dir-status($dir --> DirStat) {
38
}
39
40
# test each of three directories by a non-root user
41
-my $dirs =
+my @dirs = (
42
'/tmp', # normally writable by any user
43
'/', # writable only by root
44
- '~/tmp'; # a non-existent dir in the user's home dir
45
-for $dirs -> $dir {
+ '~/tmp' # a non-existent dir in the user's home dir
+);
46
+for @dirs -> $dir {
47
my $stat = check-dir-status $dir;
48
say "status of dir '$dir': $stat";
49
if $stat ~~ CanWrite {
0 commit comments