my %ntests; $ntests{$_} = 0 for @tests; #### @{ \my %ntests }{ @tests } = (0)x@tests; # :) #### my $mol = ''; $mol = 'forty two' if 42 == $n; #### my $mol = ! defined $n ? 'n/a' : 42 == $n ? 'forty two' : '';