in reply to code sample: possible improvements
No, you have not created a linked list. You've created a single-element hash, holding a reference to an element of an array named @data. The element being referenced is $data[2].
So to answer your question, no, that is not a linked list. As for how you can change it? I don't know.... what do you have in mind? I mean change it in what way? What kind of change are you after? Do you need it to be a linked list? If so, will there be additional elements, and how are you adding them, etc?
Basically, I guess in order to help you more, you're going to have to go ahead and give us some idea of what it is you want to do so we dont' have to guess.
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: code sample: possible improvements
by arcnon (Monk) on Jan 10, 2005 at 03:57 UTC | |
by davido (Cardinal) on Jan 10, 2005 at 04:12 UTC |