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 8f847b2 commit 3bd474bCopy full SHA for 3bd474b
CRO/tests/tools.pm6
@@ -1,5 +1,7 @@
1
+#Defines the Module Name. Make sure the file extension is .pm6
2
unit module tools;
-
3
+
4
+#Rememeber to include "is export" after the first line in the function otherwise an error will occur.
5
sub avg($n1, $n2) is export {
6
my $add = $n1 + $n2;
7
my $avg = $add / 2;
0 commit comments