in reply to Re: Have hash of arrays. Want to test if variable is a member of any of the arrays
in thread Have hash of arrays. Want to test if variable is a member of any of the arrays

Also note that List::Util (in Perl core!) provides the any function as well, so you don't need List::MoreUtils. (Though you need a fairly recent List::Util.)

  • Comment on Re^2: Have hash of arrays. Want to test if variable is a member of any of the arrays
  • Download Code

Replies are listed 'Best First'.
Re^3: Have hash of arrays. Want to test if variable is a member of any of the arrays
by toolic (Bishop) on Dec 13, 2014 at 21:20 UTC
    Though you need a fairly recent List::Util
    From perl5200delta
    List::Util has been upgraded from version 1.27 to 1.38.

    From the CPAN Changes file, it looks like "any" was added in 1.33.