1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-13 18:24:39 +02:00

Fix a braino

caught by @wryk++
This commit is contained in:
Nami-Doc
2014-10-07 15:47:06 +02:00
parent 254548a70a
commit d786c94f84

View File

@@ -1447,7 +1447,7 @@ so 'ayc' ~~ / a [ b | y ] c /; # `True`. Obviously enough ...
# It's very powerful, because Perl 6 actually parses the argument # It's very powerful, because Perl 6 actually parses the argument
# and pass them as such to the sub. It also handles named argument (`--foo`) # and pass them as such to the sub. It also handles named argument (`--foo`)
# and will even go as far as to autogenerate a `--help` # and will even go as far as to autogenerate a `--help`
sub MAIN($name) { say "Hello, you !" } sub MAIN($name) { say "Hello, $name !" }
# This produces: # This produces:
# $ perl6 cli.pl # $ perl6 cli.pl
# Usage: # Usage: