[Chicago-talk] finding *any* defined elements of a hash

Richard Reina gatorreina at gmail.com
Wed Aug 5 11:01:24 PDT 2015

Is there a way to tell if any element of a hash has a defined element
without having to check all the elements?

Such that if I have the following *potential* input from a HTML form

 my $input_hash = {

       FName => param('firstname'),
       LName => param('lastname'),
       Email => param('email'),


Can I check to see if any of the hash's element is defined without checking
all the elements as the hash could grow in the future as the fields of the
form grow.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/chicago-talk/attachments/20150805/3876ce2c/attachment-0001.html>

More information about the Chicago-talk mailing list