The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

assign - Enable Destructuring Assignment Syntax in Perl

SYNOPSIS

    my {$foo, bar => [ $x1, $x2, @xs ]} = $self->data;

STATUS

PRE-ALPHA. Forget you've seen this!

DESCRIPTION

This module enables a destructuring assignment syntax for Perl. Various complex data structure definitions on the LHS of assignment result can be used to unpack a complex data structure using variables that match keys and positions on the RHS.