Blob


1 #!/usr/bin/perl
3 # Extra credit exercise: write a program that prints out any input line that
4 # mentions both wilma and fred.
6 use warnings;
7 use strict;
8 use utf8;
10 while (<>) {
11 if (/\bwilma\b/i && /\bfred\b/i) {
12 print "$_";
13 }
14 }