Help for this page

Select Code to Download


  1. or download this
    
    my @a = ( 1, 2, 3 );
    ...
        @hash{ @$left, @$right } = ();
        return scalar keys %hash == scalar @$left;
    }
    
  2. or download this
    use List::MoreUtils qw/any/;
    
    ...
        } keys %left, keys %right;
        return 1;
    }
    
  3. or download this
    use List::MoreUtils qw/any/;
    
    ...
        return 0 if any{ $bag{$_} } keys %bag;
        return 1;
    }
    
  4. or download this
    use Set::Bag;
    
    ...
                    && $bag_b->difference($bag_a) eq '()';
        return 0;
    }