in reply to Re: nested loops problem
in thread nested loops problem

in theory rOb's suggestion should work but it doesn't! the value of choice is not yey known at this point, also with this additional while loop , the other while loop is dismissed - non of the questions ar easked to the user

Replies are listed 'Best First'.
Re: Re: Re: nested loops problem
by r0b (Pilgrim) on Jun 11, 2002 at 16:28 UTC
    Thanks for pointing that out. What I should have said was:
    do { print STDOUT "\nPlease select the catergory of results that you wi +sh to see;\n\n\t1. tv \n\t2. computers \n\t3. exercise \n\t4. food\n\ +n"; chomp ($choice = <STDIN>); # # your code goes here # } while ($choice)

    ~~rob
    ____________________________________________________________
    eval pack "h*", "072796e647022245d445f475454494c5e622b3";