Help for this page

Select Code to Download


  1. or download this
    open (DICT, "< final.txt");
    
  2. or download this
    open my $DICT, "<", "final.txt" or die "cannot open final.txt$!";
    
  3. or download this
    open my $DICT, "<", "final.txt" or die "cannot open final.txt$!";
    while (my $word = <$DICT>) {
    ...
        next if $word =~ /s.*s/i or $word =~ /h.*h/i;
        print $word;
    }
    
  4. or download this
    open my $DICT, "<", "final.txt" or die "cannot open final.txt$!";
    print for grep { not /h.*h/i } grep { not /s.*s/i }  grep /s.*h/i, <$D
    +ICT>;