diff options
author | Larry Wall <lwall@jpl-devvax.jpl.nasa.gov> | 1990-08-08 17:06:25 +0000 |
---|---|---|
committer | Larry Wall <lwall@jpl-devvax.jpl.nasa.gov> | 1990-08-08 17:06:25 +0000 |
commit | e929a76b14922a7077596a747fc1fcd1bdd6b9ea (patch) | |
tree | 59ab0360573a58aff126a2dfa1d9666ae0fdb2ce /h2pl/tcbreak2 | |
parent | 00bf170e31343ccc4fac7a63f6a3acf5e76c3616 (diff) | |
download | perl-e929a76b14922a7077596a747fc1fcd1bdd6b9ea.tar.gz |
perl 3.0 patch #26 patch #19, continued
See patch #19.
Diffstat (limited to 'h2pl/tcbreak2')
-rw-r--r-- | h2pl/tcbreak2 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/h2pl/tcbreak2 b/h2pl/tcbreak2 new file mode 100644 index 0000000000..fcbf926516 --- /dev/null +++ b/h2pl/tcbreak2 @@ -0,0 +1,17 @@ +#!/usr/bin/perl + +require 'cbreak2.pl'; + +&cbreak; + +$| = 1; + +print "gimme a char: "; + +$c = getc; + +print "$c\n"; + +printf "you gave me `%s', which is 0x%02x\n", $c, ord($c); + +&cooked; |