mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-24 10:01:38 +00:00
commit
97b0390dec
@ -1659,7 +1659,7 @@ sub MAIN($name) { say "Hello, $name !" }
|
|||||||
## Usage:
|
## Usage:
|
||||||
## t.pl <name>
|
## t.pl <name>
|
||||||
|
|
||||||
## And since it's a regular Perl 6 sub, you can haz multi-dispatch:
|
## And since it's a regular Perl 6 sub, you can have multi-dispatch:
|
||||||
## (using a "Bool" for the named argument so that we can do `--replace`
|
## (using a "Bool" for the named argument so that we can do `--replace`
|
||||||
## instead of `--replace=1`)
|
## instead of `--replace=1`)
|
||||||
subset File of Str where *.IO.d; # convert to IO object to check the file exists
|
subset File of Str where *.IO.d; # convert to IO object to check the file exists
|
||||||
|
Loading…
Reference in New Issue
Block a user