Course of Raku / Essentials / Functions 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
123Enter the expected output: ␣␣␣␣␣␣␣

2

What does it print now?

$ raku t.raku "123 456"
123␣456Enter the expected output: ␣␣␣␣␣␣␣

Course navigation

Reading command-line arguments   |   Quiz — Default values

Translations of this page: EnglishDeutschEspañolItalianoLatviešuNederlandsБългарскиРусскийУкраїнська