in reply to Re: Avoiding Global Vars
in thread Avoiding Global Vars
But if I only declare $vrx within the while loop, then I will lose its value when I need to print it...
Try it with the data I supplied, and look at the different output...
So, it's not a question of whether I reference it outside the loop - rather the opposite, since if I did reference it elsewhere, then it would be global, and it wouldn't bug me... if you see what I mean.
Tom Melly, pm (at) cursingmaggot (stop) co (stop) uk