Help for this page

Select Code to Download


  1. or download this
    has attribute => (
        default => sub { 0 },
    );
    
  2. or download this
    {
        default => 0,
    }
    
  3. or download this
        description => sub{0}
    
  4. or download this
        description => 0
    
  5. or download this
    sub { ... }->()
    
  6. or download this
    $ perl -wE 'my $x = { y => 0 }; say $x->{y}'
    0
    
  7. or download this
    $ perl -wE 'my $x = { y => sub { 0 } }; say $x->{y}'
    CODE(0x7f8c34026a60)
    
  8. or download this
    $ perl -wE 'my $x = { y => sub { 0 }->() }; say $x->{y}'
    0