Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sub add($x, $y) {
- $x + $y;
- }
- my @arr = (3, 4);
- my $sum = add(|@arr);
- $sum == 7 or die "Wrong value";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement