programming-examples/perl/String/Convert input to lowercase and uppercase.pl

6 lines
141 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
while (<>) {
print "Here's what you typed lowercased: " . lc . "\n";
print "Here's what you typed uppercased: " . uc . "\n";
}