The stupid question is the question not asked | |
PerlMonks |
Re^4: Perl program to look into the phone directory and in case of a match, print the name along with the numberby Marshall (Canon) |
on Feb 14, 2017 at 23:07 UTC ( [id://1182023]=note: print w/replies, xml ) | Need Help?? |
Hauke D, you are completely right! My regex required at least one "space" character after the "name". A line ending ("\n" in Perl lingo) counts as a "space" character although in Windows "\n" might actually be a couple of characters. This regex also appears to work. Thanks haukex!
In Section
Seekers of Perl Wisdom
|
|