- or download this
my @tests = ( "tfred", "tjock", "tfortytwo" );
- or download this
my %ntests = map { $_ => 0 } @tests;
- or download this
my %ntests;
@ntests{@tests} = (0) x @tests;
- or download this
my $mol = "forty two" x ($n == 42);
- or download this
my $mol = ($n == 42) ? "forty two" : ""