in reply to How to name arrays via scalars.

While you can use symbolic references under the use strict; pragma using the additional no strict refs; pragma and global variables, this is very generally considered as a (very) bad idea. It is much better practice to use one more level of reference in your data structure, such as an hash of arrays in your case (if I understand you correctly).

Replies are listed 'Best First'.
Re^2: How to name arrays via scalars.
by qingdaoghawk (Initiate) on May 03, 2014 at 11:59 UTC

    Yeah, one more level can work. But it just need to be @{$genelocs{$scfd_name_gene}}=($a,$b,$c). Thanks anyway.