<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Aug 5, 2015, at 1:01 PM, Richard Reina <<a href="mailto:gatorreina@gmail.com" class="">gatorreina@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="font-family: Georgia; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">my $input_hash = { <span class="Apple-converted-space"> </span><br class="">      <span class="Apple-converted-space"> </span><br class="">       FName => param('firstname'), <span class="Apple-converted-space"> </span><br class="">       LName => param('lastname'),<br class="">       Email => param('email'),<br class=""><br class="">   };<br class="">  <span class="Apple-converted-space"> </span><br class=""></div><span style="font-family: Georgia; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">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.</span></div></blockquote></div><div class=""><br class=""></div><div class="">grep through the values and check their count.</div><div class=""><br class=""></div><div class="">my $number_of_defined_values = scalar grep { defined } values %{$input_hash};<br class=""><br class=""></div><div apple-content-edited="true" class="">
--<br class="">Andy Lester => <a href="http://www.petdance.com" class="">www.petdance.com</a>

</div>
<br class=""></body></html>