in reply to Re^2: Reading from filehandles in a loop and matching linesin thread Reading from filehandles in a loop and matching lines
You missed this:
#go to the next line unless the name starts with "Mr " next unless$name =~ /^Mr /; [download]