From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

use strict;
__PACKAGE__->meta->add_attribute('z' => (accessor => 'z'));
sub clear {
my $self = shift;
$self->SUPER::clear();
$self->z(0);
}
__PACKAGE__->meta->make_immutable;
1;
__END__