Cursus Raku / Elementa / Fundamenta functionum /
MAIN functio
/ Legere
linea mandati argumenta
Quiz — Defaulte valores
Consider the following program.
sub MAIN($a = 'abc', $b = 'def') {
say $a;
say $b;
}1
What does it print if it is run as shown below?
$ raku t.raku| abc def | Enter the output values: ␣␣␣ and ␣␣␣ |
2
Now, the same program is run as:
$ raku t.raku xyz| xyz def | Enter the output values: ␣␣␣ and ␣␣␣ |
3
Finally, this command:
$ raku t.raku xyz 123| xyz 123 | Enter the output values: ␣␣␣ and ␣␣␣ |
Navigatio cursus
← Quiz
— Legere linea mandati argumenta | Multiplicem
MAIN functiones →