mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-04-26 23:23:55 +00:00
Fix a braino
caught by @wryk++
This commit is contained in:
parent
254548a70a
commit
d786c94f84
@ -1447,7 +1447,7 @@ so 'ayc' ~~ / a [ b | y ] c /; # `True`. Obviously enough ...
|
||||
# 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 will even go as far as to autogenerate a `--help`
|
||||
sub MAIN($name) { say "Hello, you !" }
|
||||
sub MAIN($name) { say "Hello, $name !" }
|
||||
# This produces:
|
||||
# $ perl6 cli.pl
|
||||
# Usage:
|
||||
|
Loading…
Reference in New Issue
Block a user