daily pastebin goal
6%
SHARE
TWEET

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

cwchen Nov 15th, 2017 105 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top