in reply to Re: Menu Troubles..
in thread Menu Troubles..

Thats awesome and it worked great! Thanx Just a quick question i can now go through and change all the values but i can only do it once. Wondering if i would need a while loop so that i can press "1" and enter value which changes the value of fname in this case then brings me back to the menu then press "1" to repeat this process.

Replies are listed 'Best First'.
Re^3: Menu Troubles..
by ktross (Deacon) on Jun 15, 2005 at 22:11 UTC
    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.