- or download this
open (DICT, "< final.txt");
- or download this
open my $DICT, "<", "final.txt" or die "cannot open final.txt$!";
- 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;
}
- 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>;