Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sub greet(:msg($g) = "Hello", :name($n) = "World") {
- "$g $n".say;
- }
- greet();
- greet(:msg("Goodbye"));
- greet(:name("Michael"));
- greet(:name("Jenny"), :msg("Hi"));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement