Help for this page

Select Code to Download


  1. or download this
    
    my %stopwords;
    ...
                   that they then these them who where 
                   why can find on an of and it by))} = 1 x 27;
    
  2. or download this
    my @salient_word = grep { not $stopwords{$_} } @word ;
    
  3. or download this
    use Set::Scalar;
    $stopwords = Set::Scalar->new;
    ...
                   that they then these them who where 
                   why can find on an of and it by));
    @word = split /\s+/, "Oh say can you see by the dawn's early light";
    
  4. or download this
    my @salient_word = grep { not $stopwords->has($_) } @word ;
    
  5. or download this
    $word = Set::Scalar->new(@word);
    my $salient_word = $word - $stopwords;
    # or this:
    my $salient_word = $word->difference($stopwords);
    
  6. or download this
    $members = Set::Scalar->new(@members);
    
    ...
    $s->delete($in->members);
    $s->insert($not_in->members);
    
  7. or download this
     $N = ($a - $b); 
     $N->insert($b - $a);