
zachlac
Novice
Apr 25, 2007, 11:56 AM
Post #4 of 10
(512 views)
|
|
Re: [KevinR] Representing Table in Perl
[In reply to]
|
Can't Post
|
|
Thank you both for your help. Basically, what I'm hearing is that I can make a hash with the ItemID as the key, and an array of length 5 as the value, containing the 5 different other properties. Since the items are most likely to be sorted by ItemID, this seems to be the best way to go about this. One other question: in Perl, if I create a hash with both a key and a value represented by a temporary changing value and array, will the program create new instances of the variables for each spot in the hash, or will it refer to the spots by reference? Basically, can I use two temporary variables which change with each iteration through the while loop reading in the file, or will this result in a hash with each set of variables being the same? Thanks.
|