$c = getc(STDIN);
or in shorter way
$c = getc;
then
ord($c);
returns the ascii value
so in short
ord(getc());
-- Gabor
On 2001.07.11 17:14 Thomas Jakub wrote:
> In c++, there is a functio, getch(), which returns the
> variable of the key you pressed - like enter would be
> 13. How could I do this in perl?
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
>
>
--
Gabor Szabo
http://www.tracert.com/
Web backend development
Phone: +972-(0)54-624648