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.
In reply to Re: Re: persistent variables between subroutines (long)
by John M. Dlugosz
in thread persistent variables between subroutines (long)
by Tuna
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |