On 17 Sep 1999, Nicholas G. Thornton wrote: > I'm working on a program that I'd like to have command line interface. Ideally > it's just sit there with a prompt (ala dos...) untill you type something. I was > wondering how I'd go about implimenting this rather than MacPerl::Ask() to > recive input. > I do this kind of thing a lot under UNIX... while(1) { $input = <STDIN>; if( $input eq "quit" ) { exit 0; } else{ &DoSomethingWith( $input ); } } -Derrik ===== Want to unsubscribe from this list? ===== Send mail with body "unsubscribe" to macperl-request@macperl.org