Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sub divmod(Int $a, Int $b) {
- $a div $b, $a mod $b;
- }
- my ($a, $b) = divmod(5, 3);
- $a == 1 or die "Wrong value";
- $b == 2 or die "Wrong value";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement