Challenge: Some might say that List::Compare::Functional's interface is not very self-documenting.
    use List::Compare::Functional qw(
        get_complement
        is_LsubsetR
        are_members_which
    );
    @complement = get_complement(
        '-u',
        [ \@Al, \@Bob, \@Carmen, \@Don, \@Ed ],
        [3],
    );
    $LR = is_LsubsetR(
        [ \@Al, \@Bob, \@Carmen, \@Don, \@Ed ],
        [2,3],
    );
    
    $memb_hash_ref = are_members_which(
        [ \@Al, \@Bob, \@Carmen, \@Don, \@Ed ],
        [ qw| abel baker fargo hilton zebra | ],
    );
You have to get the order of the arguments just right -- and can you tell what each array reference means?
| Previous | Back to start of show | Next | 
| Slide: 15 too_messy | © 2004-18 James E. Keenan |