Help for this page

Select Code to Download


  1. or download this
    my %find;
    @find{ qw( this that other ) } = ();
    my $found = grep { exists $find{$_} && ( delete $find{$_} || 1 ); } @b
    +ig_list;
    print "Success!\n" if $found == 3;
    
  2. or download this
    my %big_set;
    @big_set{ @big_array } = ();
    my @find = qw( this that other );
    my $found = grep{ exists $big_set{$_} } @find;
    print "Success!\n" if $found == 3;