in reply to Newbie Needs Help with Hash

You could also use a hash slice to associate the two arrays:

my @users = qw( alice bob charlie ); my @ids = qw( 123 456 789 ); my %id_of; @id_of{@users} = @ids; # hash slice use Data::Dumper; print Dumper(\%id_of);

Output

$VAR1 = { 'alice' => '123', 'charlie' => '789', 'bob' => '456' };