Re: Values in array may change

2004-04-22 Thread Niek Oosterlaak
Randy W. Sims wrote: > > Question: what am I doing wrong here? > > > > For multidimensional arrays, the preferred syntax is: > > my @a; > $a[$x][$y][$z] = 'value'; > > see perldoc perllol Thanks. Works as expected. Sorry for asking something I should have looked up. Another programming languag

Re: Values in array may change

2004-04-22 Thread John W. Krahn
Niek Oosterlaak wrote: > > Every now and again I like to program for fun. In this case it is a > simulation. The basis is a grid that holds things like altitude, > pieces and things like that. To hold all data in a way I can remember > everything easily, I chose to put all in a multi dimensional a

Re: Values in array may change

2004-04-22 Thread Randy W. Sims
Niek Oosterlaak wrote: Every now and again I like to program for fun. In this case it is a simulation. The basis is a grid that holds things like altitude, pieces and things like that. To hold all data in a way I can remember everything easily, I chose to put all in a multi dimensional array. I

Values in array may change

2004-04-22 Thread Niek Oosterlaak
Every now and again I like to program for fun. In this case it is a simulation. The basis is a grid that holds things like altitude, pieces and things like that. To hold all data in a way I can remember everything easily, I chose to put all in a multi dimensional array. If there is a better way