Help for this page

Select Code to Download


  1. or download this
    package Nation {
      use Moose;
    ...
      has name => (is => 'ro', isa => 'Str');
      ...;
    }
    
  2. or download this
    use List::MoreUtils qw(part);
    
    ...
    
    # Set the population to just the people we want to keep.
    @{ $people->population } = @$keep;