in reply to Perl program to look into the phone directory and in case of a match, print the name along with the number
Maybe you can add some comments to your code about which section of the code deals with which section of the input.
In doing so, maybe also add some comments to your code about which format each part of the code expects its input to be in.
When writing these comments, you should find some errors in your code.
Note that "optimizing" should only come after your program works correctly, which it currently doesn't.
Also, this task very much looks like homework. I find it a better approach to be upfront about asking for help with homework because that allows us to give you the appropriate teaching links so that you not only pass your homework but also learn the necessary skills along the way.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl program to look into the phone directory and in case of a match, print the name along with the number
by dk27 (Novice) on Feb 12, 2017 at 12:04 UTC | |
by Corion (Patriarch) on Feb 12, 2017 at 12:08 UTC | |
by haukex (Archbishop) on Feb 12, 2017 at 12:30 UTC | |
by Marshall (Canon) on Feb 12, 2017 at 22:36 UTC |