in reply to Re^2: Creating variables for each array member
in thread Creating variables for each array member
And re 'how do you tell them apart...', I've now added some comments to show that this is just an example -- I would probably use the object reference and therefore store the object reference instead of the id, but it really makes no functional difference. I notice that someone else has suggested code to store them in a hash. In a way that is what I am suggesting, but take a look at the huge reduction in coding requirements when you use a class instead of just a hash.
-M
Free your mind
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Creating variables for each array member
by GrandFather (Saint) on Jul 26, 2006 at 20:44 UTC | |
by Moron (Curate) on Jul 27, 2006 at 10:02 UTC |