programming-examples/perl/Statement/Goto statement with label.pl

5 lines
86 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
INPUT: $line = <>;
if ($line !~ /exit/) {
print "Try again\n";
goto INPUT
}