in reply to Re^5: Perl program to look into the phone directory and in case of a match, print the name along with the number
in thread Perl program to look into the phone directory and in case of a match, print the name along with the number
While i can reconstruct your result, i fear it is not for the cause you describe. it is the "next unless.." that is skipping john when there is no "enter" after john. print $line before that test to see.
I dont get it, unless \s+ is matching \n when it is there, and the "match" fails when it is missing.
nevermind, @haukex said it better Re^3: Perl program to look into the phone directory and in case of a match, print the name along with the number, should have refreshed the whole conversation before posting
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Perl program to look into the phone directory and in case of a match, print the name along with the number
by Marshall (Canon) on Feb 14, 2017 at 23:10 UTC |