in reply to ReadKey can't see 0 key...
Without trying anything, I'd suggest that ReadKey is returning the string '0' which gets evaluated by perl to be false. Try changing your while to:
while (defined (my $char = ReadKey -1))
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: ReadKey can't see 0 key...
by markseger (Beadle) on Nov 11, 2010 at 21:17 UTC |