in reply to RE: Re: Array names
in thread Array names
This way, you can refer to the arrays by name without having to use symbolic references (you can store array names in variables, and use those variables as keys to the hash -- that will prevent some subtle errors).my %data = ( 'abacus' => [ 1, 2, 3, 4, 5], 'qwerty' => [ 5, 4, 3, 2, 1]);
See perlref and perldsc for more information. It's a very powerful technique.
|
|---|