Moose::Cookbook::Snack::ArrayRef

Moose::Cookbook::Snack::ArrayRef is a Perl module for using the ArrayRef type constraint.
Download

Moose::Cookbook::Snack::ArrayRef Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Brian Manning
  • Publisher web site:
  • http://search.cpan.org/~sartak/Moose-0.50/lib/Moose/Cookbook/Snack/HashRef.pod

Moose::Cookbook::Snack::ArrayRef Tags


Moose::Cookbook::Snack::ArrayRef Description

Moose::Cookbook::Snack::ArrayRef is a Perl module for using the ArrayRef type constraint. Moose::Cookbook::Snack::ArrayRef is a Perl module for using the ArrayRef type constraint.SYNOPSIS package Fruit; use Moose; has 'name' => (is => 'rw', required => 1); has 'species' => (is => 'rw', required => 1); package ProduceStore; use Moose; use Moose::Util::TypeConstraints; has 'fruit_aisle' => (isa => 'ArrayRef', is => 'rw'); package main; # we need something to put in the fruit aisle my $orange = Fruit->new(name => 'orange', species => 'C. sinensis'); my $apple = Fruit->new(name => 'apple', species => 'M. domestica'); my @fruit = ($apple, $orange); my $store = ProduceStore->new(fruit_aisle => @fruit); Requirements: · Perl


Moose::Cookbook::Snack::ArrayRef Related Software