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:
 
<lang perl6># with arguments supplied
$ perl6raku -e 'sub MAIN($x, $y) { say $x + $y }' 3 5
8
 
# missing argument:
$ perl6raku -e 'sub MAIN($x, $y) { say $x + $y }' 3
Usage:
-e '...' x y</lang>