in reply to Re: Re: dereferencing nightmares...
in thread dereferencing nightmares...

Y'know, that is a very good point.

It's probably only because every var I used is as localised as possible with 'my' that this has never been a problem - yes, in this has the array is purely local to the sub it's used in, but the $page reference isn't. Most of the other elements referenced are anonymous.

I think I was definitely having too long a session yesterday. What I've done works, but I think I'll rewrite it later when i have a better idea of the general context it will be used in. And, I'll mark the reference of @ array possible issue in the comments in case it manages to creep in (unlikely, but safer :)

Thanks again for an interesting point.

cLive ;-)

  • Comment on (cLive ;-) Re: dereferencing nightmares...