I'm not sure I understand quite what you mean, but when I ran the appropriately edited snippet, the script returned to the main menu because of the &menu call at the end of each if statment. A loop shouldn't be required. Just make sure that the <STDIN> statement is within the menu subroutine. Note: if no valid input is received you return from your subroutine, and it doesn't loop back to the main menu as written. | [reply] [d/l] |