in reply to Re^2: Changing local variables in subroutine by passing by reference?
in thread Changing local variables in subroutine by passing by reference?
Note that normally your subs are built like this:
sub my_sub { my ($arg1, $arg2) = @_; ... }
The assignment to another variable breaks the alias, so if you change $arg1, @_ will not be modified. But if you modify @_ directly,
|
|---|