Advertisement
cwchen

[Perl 6] Trying to modify parameters (w/ errors)

Nov 15th, 2017
2,431
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 6 0.07 KB | None | 0 0
  1. sub add-one($n) {
  2.     $n += 1;
  3.     $n;
  4. }
  5.  
  6. my $n = 3;
  7. add-one($n).say;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement