I have a small program that is outputs the exact opposite of what I would expect
my @required = qw(preserver sunscreen water_bottle jacket);
my %skipper = map { $_, 1}
qw(blue_shirt hat jacket preserver sunscreen);
foreach my $item (@required) {
unless ( $skipper {item} ) { # not found in list?
print "Skipper is missing $item, \n";
}
}
This is my output
Skipper is missing preserver,
Skipper is missing sunscreen,
Skipper is missing water_bottle,
Skipper is missing jacket,
How could that be flagged as missing if it is included in hash?
TIA,
The Catfish