daily pastebin goal
18%
SHARE
TWEET

[Perl 6] Creating a subroutine w/ omitted, named parameters

cwchen Nov 15th, 2017 96 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. sub greet(:$msg = "Hello", :$name = "World") {
  2.     "$msg $name".say;
  3. }
RAW Paste Data
Top