RosettaCodeData/Task/Command-line-arguments/Perl-6/command-line-arguments.pl6
Ingy döt Net d066446780 langs a-z
2013-04-10 22:43:41 -07:00

8 lines
167 B
Raku

# with arguments supplied
$ perl6 -e 'sub MAIN($x, $y) { say $x + $y }' 3 5
8
# missing argument:
$ perl6 -e 'sub MAIN($x, $y) { say $x + $y }' 3
Usage:
-e '...' x y