What does this Perl code do?
my {$foo, bar => [ $first, @rest, $last ]} = $data;
Desctructuring assignment is a clean way to unpack a data structure into variables. JavaScript has it. Python has it. Now Perl has it too, and it’s better than the others!
In this talk, Ingy döt Net will teach you the ins and outs of the new assign.pm module and how you can use it to make your Perl code cleaner.