#!/usr/bin/env perl use utf8; ############################################################################### # This program simply copies an input stream to the console character by # character like the Unix 'cat' program. # # 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($c); } }