Except your code assumes strings too. For "objects", you'd need
my %required; @required{ map key($_), @required } = @required; delete @required{ map key($_), @got }; warn "Skipper is missing: ", values %required;
Where key is a suitable key-producing sub.
In reply to Re^4: map question (hash slice)
by ikegami
in thread map question
by catfish1116
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |