in reply to Using variables in array names

You really want to use a Hash of Arrays (HoA in the common parlance):

my %use; $use{'valpt'} = []; $use{'valpt'}[0] = 'whatever';
see perldsc and perlref for more on this.

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\

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.