- or download this
sub delete_thefruits
my $collection;
my $criteria;
- or download this
for (ref $entry){ ## i think this will check for the type being input
+by the user
when ('fruitdb::name') {
$collection = $FRUIT_NAMES;
$criteria->(name) = $entry->{data}{name};
- or download this
$collection-> remove(criteria); ## this will hopefully eventually remo
+ve one entry whether it's fruit name or fruitID
}