|
|
Accessing an Associative Array
Accessing an Associative
Array
| When accessing
an associative array using a
scalar variable as a key, you should not surround the
key with single quotes because the scalar variable
will not be interpolated. For example, the following
syntax generates the value for the age key
$key_name = "age";
$age = $CLIENT_ARRAY{$key_name};
|
Additional Resources:
Perl Associative Arrays
Table of Contents
Using the keys and values functions
|
|