Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    Declare::Constraints::Simple 0.03

    Download button

    No screenshots available
    Downloads: 362  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Excellent (5.0/5)
    1 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Robert Sedlacek | More programs
    Perl Artistic License / FREE
    September 27th, 2006, 04:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Declare::Constraints::Simple description

    Declare::Constraints::Simple is a Perl module for Declarative Validation of Data Structures.

    Declare::Constraints::Simple is a Perl module for Declarative Validation of Data Structures.

    SYNOPSIS

    use Declare::Constraints::Simple-All;

    my $profile = IsHashRef(
    -keys => HasLength,
    -values => IsArrayRef( IsObject ));

    my $result1 = $profile->(undef);
    print $result1->message, "n"; # 'Not a HashRef'

    my $result2 = $profile->({foo => [23]});

    print $result2->message, "n"; # 'Not an Object'

    print $result2->path, "n";
    # 'IsHashRef[val foo].IsArrayRef[0].IsObject'

    The main purpose of this module is to provide an easy way to build a profile to validate a data structure. It does this by giving you a set of declarative keywords in the importing namespace.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Declarative Validation | Data Structures | Perl module | Declare::Constraints | Declarative | Validation

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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