programming-examples/perl/Statement/last statement.pl
2019-11-15 12:59:38 +01:00

9 lines
154 B
Perl

FOREVER: for (;;) {
chomp($line = <>);
if ($line eq 'q') {
last FOREVER;
} else {
print "You typed: $line\n";
}
}