Command-line arguments: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) (Rename Perl 6 -> Raku, alphabetize, minor clean-up) |
Thundergnat (talk | contribs) m (Fix Perl 6 -> Raku calling conventions) |
||
Line 1,813: | Line 1,813: | ||
<lang perl6># with arguments supplied |
<lang perl6># with arguments supplied |
||
$ |
$ raku -e 'sub MAIN($x, $y) { say $x + $y }' 3 5 |
||
8 |
8 |
||
# missing argument: |
# missing argument: |
||
$ |
$ raku -e 'sub MAIN($x, $y) { say $x + $y }' 3 |
||
Usage: |
Usage: |
||
-e '...' x y</lang> |
-e '...' x y</lang> |