It looks to me as though you have a foreach {} loop that doesn't end properly (well, it is ended by what you seem to think, based on indentation, is the end of the subroutine). Maybe it is just a typo in your posted code ... ?
It seems more likely (based on the code) that you would be repeatedly prompted for attribute value answers ... and since you're not printing a \n on the prompt line, it may look as though you're not really stepping through the attributes ... but still, I would think that your responses would be printed and would result in a carriage return/line feed ...
Can you check your curly braces and make sure the code properly closes out the foreach loop, and post the actual output, please?
In reply to Re: user input behavior from within a subroutine
by ptum
in thread user input behavior from within a subroutine
by bw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |