Blob


1 #!/usr/bin/perl
3 # Make a program that prints each line that has two of the same nonwhitespace
4 # characters next to each other. It should match lines that contain words
5 # such as Mississippi, Bamm-Bamm, or llama.
7 use warnings;
8 use strict;
9 use utf8;
11 foreach (grep(/(\S)\1/, <>)) {
12 print "$_";
13 }