For example, the hash reference might be constructed like so:
my @gilligan = ... gilligan items ...;
my @skipper = ... skipper items ...;
my @professor = ... professor items ...;
my %all = (
"Gilligan" => \@gilligan,
"Skipper" => \@skipper,
"Professor" => \@professor,
);
check_items_for_all(\%all);
The newly constructed subroutine should call
check_required_items for each person in the hash,
updating their provisions list to include the required items.