use strict; use warnings; my %value_for; $value_for{'row10'} = 1; # # later... my $key = 'row' . 10; print $value_for{$key};