#!/usr/bin/env perl use utf8; ############################################################################### # This program converts STDIN to uppercase. # # Copyright © 2020 Richard Lesh. All rights reserved. ############################################################################### use Utils; use strict; use warnings; MAIN: { binmode(STDOUT, ":utf8"); binmode(STDERR, ":utf8"); binmode(STDIN, ":utf8"); my $c; while (defined($c = Utils::getchar(*STDIN))) { print chr(ord(uc(chr($c)))); } }