Help for this page

Select Code to Download


  1. or download this
    sub delete_thefruits
    
    my $collection;
    my $criteria;
    
  2. 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};
    
  3. or download this
    $collection-> remove(criteria); ## this will hopefully eventually remo
    +ve one entry whether it's fruit name or fruitID
    }