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 c9b99f3 commit 786ca5aCopy full SHA for 786ca5a
doc/Type/CompUnit/Repository/FileSystem.pod6
@@ -27,8 +27,12 @@ C<ver>, and C<api>.
27
28
# assuming one is cloned into the zef git repository...
29
my $repo = CompUnit::Repository::FileSystem.new(prefix => $*CWD);
30
- my $dist = $repo.candidates("Zef").head;
31
- say "Zef version: " ~ $dist.meta<version>;
+ with $repo.candidates("Zef").head -> $dist {
+ say "Zef version: " ~ $dist.meta<version>;
32
+ }
33
+ else {
34
+ say "No candidates for 'Zef' found";
35
36
37
=head2 method files
38
0 commit comments