in reply to Re: Faster indexing an array
in thread Faster indexing an array
I for one, tend to use scalars and refs because that makes using the variables more consistent (arrows for everybody!). It makes for less effort to pass around the refs to helper functions. I'll still use a direct array variable for something very local and/or temporary, but in general it'll be refs.
These days, I often go all the way to a $universal hashref, which makes it almost trivial to save and restore the program state.
PS:
Such a $universal hashref technique is not recommended for anyone who has issues with spelling key names consistently and accurately.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Faster indexing an array
by doom (Deacon) on Feb 17, 2015 at 22:23 UTC |