note
hdb
<p>Why does this work? (same result as your proposals)</p>
<code>
my %opt;
my @vals = qw(title artist album);
my @opts = map { "$_"."=s" => \$opt{$_} } @vals;
print @opts;
</code>
<p>UPDATE: Guess: Because there is some statement in there that needs to be executed rather than a static string only?</p>
1024908
1024911