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:
@@ -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:
|
||||||
|
Reference in New Issue
Block a user