in reply to Re: Global variable unexpectedly modified when passed by reference
in thread Global variable unexpectedly modified when passed by reference
Thanks for the clarification about the way the reference is used. The code I supplied is an example and in reality %hash would be the result of another sub call, so I can't pass by value. As I need to then call other subs with \%hash as an argument (some of which need to modify %hash), I'll need to find another way.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Global variable unexpectedly modified when passed by reference
by parv (Parson) on Dec 08, 2014 at 15:27 UTC | |
|
Re^3: Global variable unexpectedly modified when passed by reference
by GotToBTru (Prior) on Dec 08, 2014 at 15:15 UTC | |
|
Re^3: Global variable unexpectedly modified when passed by reference
by Anonymous Monk on Dec 08, 2014 at 15:29 UTC |