Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Does hash contain minimum keys?

by emshach (Initiate)
on Dec 13, 2016 at 21:46 UTC ( #1177739=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub test_it (\%) {
      my ($h) = @_;
    ...
              && !grep { !defined($h->{$_}) } @required);
      # return true if the list of missing required keys is empty
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1177739]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2020-02-19 12:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (82 votes). Check out past polls.

    Notices?