Course of Raku / Essentials / The MAIN
function / Reading command-line arguments
Quiz — Reading command-line arguments
Here is the program:
sub MAIN($a) {
say $a;
}
1
What does it print if it is run as shown below?
$ raku t.raku 123
123 | Enter the expected output: ␣␣␣␣␣␣␣ |
2
What does it print now?
$ raku t.raku "123 456"
123␣456 | Enter the expected output: ␣␣␣␣␣␣␣ |
More practice
Course navigation
←
The MAIN
function
|
The MAIN
function / Multiple MAIN
functions
→
💪 Or jump directly to the exercises to this section.
Translations of this page: English • Deutsch • Español • Italiano • Latviešu • Nederlands • Български • Русский • Українська