Command-line arguments: Difference between revisions

Content added Content deleted
(Rename Perl 6 -> Raku, alphabetize, minor clean-up)
m (Fix Perl 6 -> Raku calling conventions)
Line 1,813: Line 1,813:


<lang perl6># with arguments supplied
<lang perl6># with arguments supplied
$ perl6 -e 'sub MAIN($x, $y) { say $x + $y }' 3 5
$ raku -e 'sub MAIN($x, $y) { say $x + $y }' 3 5
8
8


# missing argument:
# missing argument:
$ perl6 -e 'sub MAIN($x, $y) { say $x + $y }' 3
$ raku -e 'sub MAIN($x, $y) { say $x + $y }' 3
Usage:
Usage:
-e '...' x y</lang>
-e '...' x y</lang>