It wasn't a question of name space, but an issue of using meaningful variable names, i.e. names that make sense to you and to your reader. The only thing that the name $var tells you is that it is probably a variable, but that was already known.
If you use a more useful name, such as $counter, $nb_of_customers, $time_left_to_ignition, that helps understanding what's going on in the program.
| [reply] |
I Widdled my program down to a simple example (so I thought) and I just picked names out of the air. In hindsight I should have used foo and fee. The names I picked actually highlighted my 'wrong' thinking that you could treat an array just like a variable. Thanks for all your help in this problem I was having.
| [reply] |