Initial commit from the 2013 with minor fixes. From now and then,
[perlbook.git] / l37.pl
blobfd523750f0114c00691fc919bdac329e590cffa4
1 use utf8;
2 use Encode;
3 use strict;
5 #Более короткий вариант:
6 #use encoding ’cp866’;
7 binmode(STDIN, ':encoding(cp866)');
8 binmode(STDOUT,':encoding(cp866)');
10 my $out= uc "Русский текст\n";
11 print $out;
13 my $t= <STDIN>;
14 $t =~ s/\w*(.*)/Хехе$1/;
15 print $t;