http://qs321.pair.com?node_id=11137614

cadphile has asked for the wisdom of the Perl Monks concerning the following question:

So, this is a curious construct, which I'd be interested in hearing some deep esoteric explanation for (basically, explain the assignment of the hash: @b{@f}=(); ). How does the hash get assigned by using the list symbol on it?

$> perl -M'Data::Dumper' -le '@f=("f1","f2","f3"); my %b; @b{@f}=();pr +int Dumper(\@f); print Dumper(\%b)' $VAR1 = [ 'f1', 'f2', 'f3' ]; $VAR1 = { 'f1' => undef, 'f3' => undef, 'f2' => undef };