Response: David H. Adler suggested passing a single hash reference with named arguments:
    @complement = get_complement( {
        lists    => [ \@Al, \@Bob, \@Carmen, \@Don, \@Ed ],
        item     => 3,
        unsorted => 1,
    } );
    $LR = is_LsubsetR( {
        lists    => [ \@Al, \@Bob, \@Carmen, \@Don, \@Ed ],
        pair     => [2,3],
    } );
    
    $memb_hash_ref = are_members_which( {
        lists    => [ \@Al, \@Bob, \@Carmen, \@Don, \@Ed ],
        items    => [ qw| abel baker fargo hilton zebra | ],
    } );More verbose, but more self-documenting.
The order in which arguments are passed no longer matters, but you have to get the names of the keys right.
Now available for both List::Compare and List::Compare::Functional. See documentation for version 0.29 or later.
| Previous | Back to start of show | Next | 
| Slide: 16 Adlerian | © 2004-18 James E. Keenan |