sub happy-birthday(
Str $name,
Int $age
) returns Mu
Say Happy Birthday to a person.
Person's name
Person's age
sub greet(
Str $name,
Str $greeting = "Hello"
) returns Mu
Greet a person.
Person's name
Greeting
sub happy-birthday(
Str $name,
Int $age
) returns Mu
Say Happy Birthday to a person.
Person's name
Person's age
sub greet(
Str $name,
Str $greeting = "Hello"
) returns Mu
Greet a person.
Person's name
Greeting
#| Say Happy Birthday to a person. | |
sub happy-birthday( | |
Str $name, #= Person's name | |
Int $age #= Person's age | |
) { | |
say "Happy {$age}th Birthday $name!"; | |
} | |
#| Greet a person. | |
sub greet( | |
Str $name, #= Person's name | |
Str $greeting = 'Hello' #= Greeting | |
) { | |
say "{$greeting.tc}, $name!"; | |
} |