The Perl and Raku Conference 2023 in Toronto
Attending this event?
Back To Schedule
Thursday, July 13 • 11:30am - 11:50am
Destructuring Syntax for Perl

Sign up or log in to save this to your schedule, view media, leave feedback and see who's attending!

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.

avatar for Ingy döt؜؜ Net­

Ingy döt؜؜ Net­

Enigmatic Acmeist
Ingy döt Net likes to write code that writes code in all programming languages.Ingy likes to hack, hang and drink beer with people of all programming communities.Ingy considers the Perl community his family.https://metacpan.org/author/INGYhttps://github.com/ingydotnet/http://ing... Read More →

Thursday July 13, 2023 11:30am - 11:50am EDT
Track R

Attendees (2)