Help for this page

Select Code to Download


  1. or download this
    use Set::Scalar;
    
    ...
    my $smallset = Set::Scalar->new(@smallarray);
    
    my $difference = $bigset - $smallset;
    
  2. or download this
    my $smallarray_ref = \@smallarray;
    my @difference = grep { !($_ ~~ $smallarray_ref) } @bigarray;