Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Perl Modules

    Moose::Cookbook::Snack::HashRef 0.50

    Download button

    No screenshots available
    Downloads: 463  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Fair (2.9/5)
    13 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Brian Manning | More programs
    Perl Artistic License / FREE
    June 13th, 2008, 13:05 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    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[Fruit]' );

    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 );

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Moose cookbook | HashRef type constraint | Perl module | Moose | cookbook | HashRef

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM