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