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
In reply to Re^6: Perl program to look into the phone directory and in case of a match, print the name along with the number
by huck
in thread Perl program to look into the phone directory and in case of a match, print the name along with the number
by dk27
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |