repo.or.cz
/
perlbook.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Initial commit from the 2013 with minor fixes. From now and then,
[perlbook.git]
/
l37.pl
blob
fd523750f0114c00691fc919bdac329e590cffa4
1
use
utf8
;
2
use
Encode
;
3
use
strict
;
4
5
#Более короткий вариант:
6
#use encoding ’cp866’;
7
binmode
(
STDIN
,
':encoding(cp866)'
);
8
binmode
(
STDOUT
,
':encoding(cp866)'
);
9
10
my
$out
=
uc
"Русский текст
\n
"
;
11
print
$out
;
12
13
my
$t
= <
STDIN
>;
14
$t
=~
s/\w*(.*)/Хехе$1/
;
15
print
$t
;