in reply to Re^2: loop in C prompt window
in thread loop in C prompt window
Now that we've cleared that up, can you explain a little bit more precisely how you would like your program to run? A very basic command line looping prompt would look a little this this:
But of course you have to decide what to do with the input when you've actually grabbed it. Or am I misunderstanding how you mean you would like to loop over a large number of commands?while(){ print 'Prompt:> '; readline; last if $_ eq 'quit'; }
|
|---|