You are viewing a single comment's thread. Return to all comments →
Perl:
sub pangrams { my $s = shift; my %h; $s =~ s/\s+//gm; $s = lc($s); my @arr = split("", $s); %h = map {$_ => 1} grep {$_} @arr; return ((keys %h) == 26) ? "pangram" : "not pangram"; }
Seems like cookies are disabled on this browser, please enable them to open this website
Pangrams
You are viewing a single comment's thread. Return to all comments →
Perl: