in reply to Re: Global variable unexpectedly modified when passed by reference
in thread Global variable unexpectedly modified when passed by reference
Perl really doesn’t have the notion of “[passing parameters by] reference.”
That's not true. In fact, Perl always passes parameters by reference.
$ perl -E'sub { $_[0] = "abc" }->($x); say $x' abc
I think you wanted to point out the phrase "passing by reference" has been incorrectly used instead of "passing a reference" throughout this thread, but you took a wrong turn somewhere.
|
|---|