|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Re: a hash and 2 loops--not workingby roboticus (Canon) |
| on Nov 08, 2012 at 21:33 UTC ( #1002990=note: print w/ replies, xml ) | Need Help?? |
|
"Not working" isn't much of a description. If I had to guess (and I do, since I don't know what "Not working" means), I'd guess that it appears to hang, since you don't reprompt if there's an error. Perhaps you ought to put an error message in there. For example:
Also, there are better ways to check your hash. They are, after all, optimized for searching. Read perldoc perldsc and perldoc -f exists for clues to simplify your loops! ...roboticus When your only tool is a hammer, all problems look like your thumb.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||