Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl system ("stty","-icanon","eol","\01","-echo"); while($_=getc(STDIN)){ print("You Pressed: $_\n"); if (m/q/i){die("Quitting...\n");} }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: getc() question
by repson (Chaplain) on Jan 10, 2001 at 08:06 UTC |