The stupid question is the question not asked | |
PerlMonks |
Re: Perl program to look into the phone directory and in case of a match, print the name along with the numberby Corion (Patriarch) |
on Feb 12, 2017 at 10:02 UTC ( [id://1181800]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|