Variable::Strongly::Typed::Array

Variable::Strongly::Typed::Array is a Perl module for strongly typed array.
Download

Variable::Strongly::Typed::Array Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Mark Ethan Trostler
  • Publisher web site:
  • http://search.cpan.org/~metzzo/Java-4.7/Java.pm

Variable::Strongly::Typed::Array Tags


Variable::Strongly::Typed::Array Description

Variable::Strongly::Typed::Array is a Perl module for strongly typed array. Variable::Strongly::Typed::Array is a Perl module for strongly typed array.SYNOPSISThis class is utilized by Variable::Strongly::Typed - you don't access this directly my @array_of_ints :TYPE('int'); # Each slot must contain an int my @array_of_rgb :TYPE(&red_green_blue); # my enumerated type # ... and later ... $array_of_ints = 44; # Groovy $array_of_ints = 'yah'; # croak! # Return 1 if this val is RED, BLUE, or GREEN # 0 otherwise sub red_green_blue { local $_ = shift; /A RED z/xms || /A BLUE z/xms || /A GREEN z/xms; } $array_of_my_very_own_types = 99; # croak! $array_of_my_very_own_types = 'BLUE'; # OK! Requirements: · Perl


Variable::Strongly::Typed::Array Related Software