12 lines
161 B
Perl
12 lines
161 B
Perl
print "Please type four characters...\n";
|
|
|
|
for (1 .. 4) {
|
|
$char = <>;
|
|
chomp $char;
|
|
$word .= $char;
|
|
}
|
|
|
|
print "You typed: " , $word;
|
|
|
|
|
|
|