- or download this
has attribute => (
default => sub { 0 },
);
- or download this
{
default => 0,
}
- or download this
description => sub{0}
- or download this
description => 0
- or download this
sub { ... }->()
- or download this
$ perl -wE 'my $x = { y => 0 }; say $x->{y}'
0
- or download this
$ perl -wE 'my $x = { y => sub { 0 } }; say $x->{y}'
CODE(0x7f8c34026a60)
- or download this
$ perl -wE 'my $x = { y => sub { 0 }->() }; say $x->{y}'
0