You need to change that foreach to be keys %dateparts. As it is, it's going over both the keys and the values, and when it gets to value, it's false because that key doesn't exist yet.
foreach my $element (keys %dateparts) { ... }
local $_ = "0A72656B636148206C72655020726568746F6E41207473754A"; while(s/..$//) { print chr(hex($&)) }
In reply to Re: Validating hash values
by reptile
in thread Validating hash values
by rodry
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |