You missed this:
#go to the next line unless the name starts with "Mr " next unless$name =~ /^Mr /;
In reply to Re^3: Reading from filehandles in a loop and matching lines
by Mr. Muskrat
in thread Reading from filehandles in a loop and matching lines
by Nathan_84
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |