Taking the parts of your guidance request in reverse order:
"to get the desired output I am looking for"
Is printing a simple "E" or "L" your "desired output?" If so, do you nonetheless think the second snippet is somehow deficient? If so, how?
"I just need to be guided on to where to put the code.... "
Probably it would be best to put the second snippet into the first, after the input from <STDIN> for $cmmdty has run its course.
But what's the point of the second input routine? What is expected when asking user to enter a $lore? Does a $lore have to do with your question?
And at least as much to the point, how much thought did you put into solving your (trivial) question before posting? Why did you bother posting instead of trying your possibilities... or reading the applicable tuts?
Paraphrasing numerous suggestions found in the FAQs and elsewhere here in the Monastery, we really do like to see some genuine effort. That fact that you posted some code hardly obscures the fact that there's very little sign you made any serious effort to answer your actual question.
In reply to Re: Auto Fill - LAZY question!
by ww
in thread Auto Fill
by PilotinControl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |