programming-examples/perl/Statement/Controlling Loop Flow.pl

16 lines
266 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
#!/usr/bin/perl
use warnings;
use strict;
my $stopnow = 0;
until ($stopnow) {
$_ = <STDIN>;
chomp;
if ($_) {
my $sdrawkcab = reverse $_;
print "$sdrawkcab\n";
} else {
$stopnow = 1;
}
}
print "!enod llA\n";