This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl 3.0 patch #26 patch #19, continued
[perl5.git] / h2pl / tcbreak
CommitLineData
e929a76b
LW
1#!/usr/bin/perl
2
3require 'cbreak.pl';
4
5&cbreak;
6
7$| = 1;
8
9print "gimme a char: ";
10
11$c = getc;
12
13print "$c\n";
14
15printf "you gave me `%s', which is 0x%02x\n", $c, ord($c);
16
17&cooked;