Moose::Cookbook::Snack::HashRefMoose::Cookbook::Snack::HashRef is a Perl module for using the HashRef type constraint. | |
Download |
Moose::Cookbook::Snack::HashRef Ranking & Summary
Advertisement
- 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::HashRef Tags
Moose::Cookbook::Snack::HashRef Description
Moose::Cookbook::Snack::HashRef is a Perl module for using the HashRef type constraint. Moose::Cookbook::Snack::HashRef is a Perl module for using the HashRef type constraint.SYNOPSIS package Fruit; use Moose; has 'species' => ( is => 'rw', required => 1 ); package ProduceStore; use Moose; use Moose::Util::TypeConstraints; has 'fruit_aisle' => ( is => 'rw', isa => 'HashRef' ); package main; use Moose; # we need something to put in the fruit aisle my $orange = Fruit->new( species => 'C. sinensis' ); my $apple = Fruit->new( species => 'M. domestica' ); my %fruit = ( orange => $orange, apple => $apple ); my $store = ProduceStore->new( fruit_aisle => %fruit ); Requirements: · Perl
Moose::Cookbook::Snack::HashRef Related Software