You really want to use a Hash of Arrays (HoA in the common parlance):
see perldsc and perlref for more on this.my %use; $use{'valpt'} = []; $use{'valpt'}[0] = 'whatever';
Update: For a vigourous explanation of why the OP doesn't want to do what he think he does see Why it's stupid to `use a variable as a variable name'.
/J\
In reply to Re: Using variables in array names
by gellyfish
in thread Using variables in array names
by Lhamo_rin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |