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

sub as_arrayref { my ($self) = @_; [$self->key, [map { $_->as_arrayref } @{$self->children}], $self->leaf]; }