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

    Params::Validate::Dependencies 1.12

    Download button

    No screenshots available
    Downloads: 173  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    David Cantrell | More programs
    GPL / FREE
    November 2nd, 2011, 13:36 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Params::Validate::Dependencies description

    Extends Params::Validate to make it easy to validate that you have been passed the correct combinations of parameters

    Params::Validate::Dependencies is a Perl module that extends Params::Validate to make it easy to validate that you have been passed the correct combinations of parameters.

    SYNOPSIS

    This example validates that sub 'foo's arguments are of the right types, and that either we have at least one of alpha, beta and gamma, or we have both of bar amd baz:

     use Params::Validate::Dependencies qw(:all);

     sub foo {
     validate(@_,
     {
     alpha => { type => ARRAYREF, optional => 1 },
     beta => { type => ARRAYREF, optional => 1 },
     gamma => { type => ARRAYREF, optional => 1 },
     bar => { type => SCALAR, optional => 1 },
     baz => { type => SCALAR, optional => 1 },
     },
     any_of(
     qw(alpha beta gamma),
     all_of(qw(bar baz)),
     )
     );
     }



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    validate dependencies | Perl module | Perl | validate | dependencies

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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