Help for this page

Select Code to Download


  1. or download this
    package LockedBox;
    use Moose;
    ...
            lock_value( %$self, $attr->name )
        }
    }
    
  2. or download this
    my $foo = LockedBox->new( bar => 10 );
    
  3. or download this
    my $foo = LockedBox->new( bar => 10, baz => 100 );
    
  4. or download this
    $foo->{baz} = 20;
    
  5. or download this
    $foo->{bar} = 20;