Advertisement
cwchen

[Perl 6] Creating a subroutine with parameters.

Nov 15th, 2017
954
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 6 0.10 KB | None | 0 0
  1. sub hello($name) {
  2.     "Hello {$name}".say;
  3. }
  4.  
  5. hello("Michael");
  6. hello("Jenny");
  7. hello("Tom");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement