in reply to hash and arrays
my $val = $array[$number];
It is often desired to retreive the data by a name, instead of a number, so hashes are used. They are often called linked-lists in c. There are 2 lists, the keys and the values, so you can access data with $hash{$key_name}. Hashes are very convenient, but are slower. That is it in a nutshell.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: hash and arrays
by ikegami (Patriarch) on Nov 08, 2008 at 19:44 UTC |