@_ is a list of aliases
sub add { my($arg1, $arg2) = @_; $_[0] = $arg1 - 1; $_[1] = $arg2 + 1; return $arg1 + $arg2; }
$sum = add(3, 6);
Modification of a read-only value attempted at script line 32.
sub add { my($arg1, $arg2) = @_; $_[0] = $arg1 - 1; $_[1] = $arg2 + 1; return $arg1 + $arg2; }
$sum = add(3, 6);
Modification of a read-only value attempted at script line 32.