in reply to Re: persistent variables between subroutines (long)
in thread persistent variables between subroutines (long)
Pass a reference to a data structures holding the information you want as the first argument to a function. ... Group your functions by what you are expecting to use as this first argument. eg, all of the functions that deal with "%xferSessionInfo" hashes together. Where possible, only make changes to the state variable that is the first argument to the function.That is getting very close to using Perl Objects. Next step is to start blessing that hash.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: persistent variables between subroutines (long)
by mugwumpjism (Hermit) on Aug 09, 2001 at 04:31 UTC |