daily pastebin goal
18%
SHARE
TWEET

[Perl 6] Creating a subroutine with parameters.

cwchen Nov 15th, 2017 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. sub hello($name) {
  2.     "Hello {$name}".say;
  3. }
  4.  
  5. hello("Michael");
  6. hello("Jenny");
  7. hello("Tom");
RAW Paste Data
Top