.\" Automatically generated by Pod::Man 2.27 (Pod::Simple 3.28)
.\"
.\" Standard preamble:
.\" ========================================================================
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.de Vb \" Begin verbatim text
.ft CW
.nf
.ne \\$1
..
.de Ve \" End verbatim text
.ft R
.fi
..
.\" Set up some character translations and predefined strings.  \*(-- will
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
.\" double quote, and \*(R" will give a right double quote.  \*(C+ will
.\" give a nicer C++.  Capital omega is used to do unbreakable dashes and
.\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff,
.\" nothing in troff, for use with C<>.
.tr \(*W-
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
.ie n \{\
.    ds -- \(*W-
.    ds PI pi
.    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
.    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
.    ds L" ""
.    ds R" ""
.    ds C` ""
.    ds C' ""
'br\}
.el\{\
.    ds -- \|\(em\|
.    ds PI \(*p
.    ds L" ``
.    ds R" ''
.    ds C`
.    ds C'
'br\}
.\"
.\" Escape single quotes in literal strings from groff's Unicode transform.
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\"
.\" If the F register is turned on, we'll generate index entries on stderr for
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
.\" entries marked with X<> in POD.  Of course, you'll have to process the
.\" output yourself in some meaningful fashion.
.\"
.\" Avoid warning from groff about undefined register 'F'.
.de IX
..
.nr rF 0
.if \n(.g .if rF .nr rF 1
.if (\n(rF:(\n(.g==0)) \{
.    if \nF \{
.        de IX
.        tm Index:\\$1\t\\n%\t"\\$2"
..
.        if !\nF==2 \{
.            nr % 0
.            nr F 2
.        \}
.    \}
.\}
.rr rF
.\"
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
.\" Fear.  Run.  Save yourself.  No user-serviceable parts.
.    \" fudge factors for nroff and troff
.if n \{\
.    ds #H 0
.    ds #V .8m
.    ds #F .3m
.    ds #[ \f1
.    ds #] \fP
.\}
.if t \{\
.    ds #H ((1u-(\\\\n(.fu%2u))*.13m)
.    ds #V .6m
.    ds #F 0
.    ds #[ \&
.    ds #] \&
.\}
.    \" simple accents for nroff and troff
.if n \{\
.    ds ' \&
.    ds ` \&
.    ds ^ \&
.    ds , \&
.    ds ~ ~
.    ds /
.\}
.if t \{\
.    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
.    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
.    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
.    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
.    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
.    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
.\}
.    \" troff and (daisy-wheel) nroff accents
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
.ds ae a\h'-(\w'a'u*4/10)'e
.ds Ae A\h'-(\w'A'u*4/10)'E
.    \" corrections for vroff
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
.    \" for low resolution devices (crt and lpr)
.if \n(.H>23 .if \n(.V>19 \
\{\
.    ds : e
.    ds 8 ss
.    ds o a
.    ds d- d\h'-1'\(ga
.    ds D- D\h'-1'\(hy
.    ds th \o'bp'
.    ds Th \o'LP'
.    ds ae ae
.    ds Ae AE
.\}
.rm #[ #] #H #V #F C
.\" ========================================================================
.\"
.IX Title "PERLKO 1"
.TH PERLKO 1 "2014-01-06" "perl v5.18.2" "Perl Programmers Reference Guide"
.\" For nroff, turn off justification.  Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.if n .ad l
.nh
X \s-1XXX\s0 perldocX \s-1XX XX XX XX XX XXXX X XXX
XXX XXXX XX XX\s0 =head, =item, 'L' \s-1XX XXXXXX.
X XXX XX\s0 perldocX \s-1XX XX XXXX XXX X XXX
XX POD XXXX XX XXXX.  X XXX XX\s0 perlpod
\&\s-1XXXX XXXXXX. \s0
.SH "NAME"
perlko \- PerlX XXX XXX
.SH "DESCRIPTION"
.IX Header "DESCRIPTION"
PerlX \s-1XXX XX XX XXXXX \s0!
.PP
PerlX 5.8.0XXX \s-1XXXX/ISO 10646X XX XXXX XXX XXX.
XXXX XXX XXXX XXXX XXX XX XXXX
XXXX XXX XX XXX XXX XX XXX XX XXX XXXX
XXXXX.  XXXXX X XXXX XXX XX XXX XX XX XX \-
XXX XX XXX, XX XXX, XXX XXX, XXX XX XXXX
XXX XX XXXX, XX XX, XXX XX, XXXX XX, XXXX XX,
XXXX XX, XX XXXX XX XX X\-X XXXX XX XXX XX
XX XXX XXX XXX  X XX X XX XXX XX XXX XXX
XX XXX XXXX X X XX XX XXX XXXX  XX XX XXXX
XXXX XX XX XX XX XXX  XXXX XXXX.\s0
.PP
PerlX \s-1XXXXX XXXXX XX XXX XX XXXXX. XX XXXXX
XXX\s0 Perl \s-1XXXX XXX  UTF\-8 XXXX X X XX, 
XX XXX XXX\s0(\s-1XX XX, XXX,\s0 index, substr)X \s-1XXX XX
XX XXXX XX XXX XXXXX. \s0(X \s-1XXX XX \s0
perlunicode \s-1XXXX XXXXXX.\s0) \s-1XXXXX XX XXXX XX
XX XXX XXX, XXX XX XXX XX XX/X XXX XXXXX
XXXX XX XX XXXXX X XXXX XXX XXX XX XX XX
\&\s0'Encode'X  \s-1XXXXX. XXXX \s0'Encode'X  \s-1XX XXX XXX XXX
XXX XX X X XXXX.\s0
.PP
\&'Encode'X \s-1XXX XX XXX XXXX XXXXX.\s0
.IP "\(bu" 4
euc-kr
.Sp
US-ASCIIX \s-1KS X 1001X XX XX XXXXX XXX \s0(\s-1XX XXXXXX
XX.\s0) \s-1KS X 2901X RFC 1557 XX.\s0
.IP "\(bu" 4
cp949
.Sp
MS-Windows 9x/MEXX \s-1XXX XX XXX. \s0 euc-krX 8,822XX
\&\s-1XX XXX XX XX. \s0 aliasX uhc, windows\-949, x\-windows\-949,
ks_c_5601\-1987. X \s-1XXX XXX XXXX XX XXXXX,\s0 Microsoft
\&\s-1XXXX CP949X XXX XXX XX.\s0
.IP "\(bu" 4
johab
.Sp
\&\s-1KS X 1001:1998 XX 3XX XXX XXX.  XX XXXXX\s0 cp949X
\&\s-1XXXXX\s0 US-ASCIIX  \s-1KS X 1001X 8,822XX XX XXX XX XX.
XXX XXX XX XX. \s0
.IP "\(bu" 4
iso\-2022\-kr
.Sp
\&\s-1RFC 1557XX XXX XXX XXX XX XXX XXXXX\s0 US-ASCIIX
\&\s-1KS X 1001X XXXXX XX XXX\s0 euc-krX \s-1XXX XXX XXX XX.
1997\-8X XXX XXXX X XX XX XXX XXX XX.\s0
.IP "\(bu" 4
ksc5601\-raw
.Sp
\&\s-1KS X 1001\s0(\s-1KS C 5601\s0)X \s-1GL\s0(X, \s-1MSBX 0XX X XX\s0) X \s-1XXX XX
XXX.\s0 US-ASCIIX \s-1XXXX XX XXXX XXX XX X11 XXX XX
XXX \s0(ksc5601.1987\-0. '0'X \s-1GLX XXX.\s0)XX \s-1XXX XX XXXXX
XX XX. KS C 5601X 1997X KS X 1001X XXX XXXX.  1998XXX  X
XX \s0(\s-1XXX XXX XX XX XX\s0)X \s-1XXXX.\s0
.PP
X \s-1XX XX XXX XXX XXXX. \s0
.PP
\&\s-1XX XX,\s0 euc-kr \s-1XXXXX X XXX UTF\-8X XXXXX XXX
XX XX XXX. \s0
.PP
.Vb 1
\&    perl \-Mencoding=euc\-kr,STDOUT,utf8 \-pe1  < file.euckr > file.utf8
.Ve
.PP
\&\s-1XXXX XXX XX X X XXXX. \s0
.PP
.Vb 1
\&    perl \-Mencoding=utf8,STDOUT,euc\-kr \-pe1  < file.utf8  > file.euckr
.Ve
.PP
\&\s-1XX XXX XX XXXX X X XXX\s0 Encode \s-1XXX XX 
XXXX\s0 PerlXX \s-1XX\s0 piconvX PerlX \s-1XX XXXX.
X XXXX X X XXX\s0 piconvX UnixX \s-1XX\s0 iconvX
\&\s-1XXX X XXXX. X XXXX XXX XXXX.\s0
.PP
.Vb 2
\&   piconv \-f euc\-kr \-t utf8 < file.euckr > file.utf8
\&   piconv \-f utf8 \-t euc\-kr < file.utf8 > file.euckr
.Ve
.PP
X, 'PerlIO::encoding' \s-1XXX XX XXX XXXX XXX XX XX
\&\s0(\s-1XXX XXX XXX\s0) \s-1XXX XX X X XXXX.\s0
.PP
.Vb 1
\&  #!/path/to/perl 
\&
\&  use encoding \*(Aqeuc\-kr\*(Aq, STDIN => \*(Aqeuc\-kr\*(Aq,
\&                         STDOUT\-> \*(Aqeuc\-kr\*(Aq, STDERR=>\*(Aqeuc\-kr\*(Aq;
\&
\&  print length("XX");        # 2  (X XXXX XX XX XXX XX)
\&  print length(\*(AqXX\*(Aq);        # 4  (XX XXXX XXX XX XXX XX)
\&  print index("XX, XXX", "X");   # \-1 (\*(AqX\*(AqX XX)
\&  print index(\*(AqXX, XXX\*(Aq, \*(AqX\*(Aq);   # 7 (8XXX 9XX XXXX \*(AqX\*(AqX
\&                                            XXXX XXX.)
.Ve
.SS "X \s-1XXX XX XXX...\s0"
.IX Subsection "X XXX XX XXX..."
PerlX \s-1XXXX  XXX XXX XXX XX XX XX, X XXX XX\s0
Perl \s-1XX X XXX XXXX XX,\s0 EncodeX \s-1XXX XX XX XX
XX X XXXX.  XX X XXX XX XX XXX XX XXXX.\s0
.SS "Perl \s-1XX XX\s0"
.IX Subsection "Perl XX XX"
\&\s-1XXX XXX  XX XXX XXX XX XXX XXXX. X XXX XX
XXX XX XXX XX XXXX XX XX XXXX.\s0
.IP "<http://www.perl.com/>" 4
.IX Item "<http://www.perl.com/>"
.Vb 1
\&   O\*(AqReillyX Perl X XXX
.Ve
.IP "<http://www.cpan.org/>" 4
.IX Item "<http://www.cpan.org/>"
.Vb 1
\&        Comprehensive Perl Archive Network
.Ve
.IP "<http://lists.perl.org/>" 4
.IX Item "<http://lists.perl.org/>"
.Vb 2
\&  Perl XXX XXX. XX XXX XXX
\&  perl\-unicodeXX \*(AqEncode\*(AqX XX XXX.
.Ve
.SS "PerlX X \s-1XX XXXXX XXX X X XX XXX XX XXX\s0"
.IX Subsection "PerlX X XX XXXXX XXX X X XX XXX XX XXX"
.IP "<http://www.perl.or.kr/>" 4
.IX Item "<http://www.perl.or.kr/>"
.Vb 1
\&  Perl XX XXX XX
.Ve
.IP "<news:han.comp.lang.perl/>" 4
.IX Item "<news:han.comp.lang.perl/>"
.Vb 1
\&  XXX Perl XX XX
.Ve
.IP "<http://www.hanb.co.kr/search/searchResult.html?keyword=perl>" 4
.IX Item "<http://www.hanb.co.kr/search/searchResult.html?keyword=perl>"
.Vb 1
\&  O\*(AqReillyXX XX XXX Perl XX XX
.Ve
.IP "<http://www.perlschool.net/>" 4
.IX Item "<http://www.perlschool.net/>"
.Vb 1
\&  Perl XX XX X XX, XX XX, XX XX XXX XX
.Ve
.IP "<http://www.perl.co.kr>" 4
.IX Item "<http://www.perl.co.kr>"
.Vb 1
\&  PerlX XXX CGI, DB, XX XX XX  XX X XX XX
.Ve
.SS "\s-1XXXX X XXX XXX XX XX\s0"
.IX Subsection "XXXX X XXX XXX XX XX"
.IP "<http://www.unicode.org/>" 4
.IX Item "<http://www.unicode.org/>"
.Vb 1
\&  XXXX XXXX.
.Ve
.IP "<http://std.dkuug.dk/JTC1/SC2/WG2>" 4
.IX Item "<http://std.dkuug.dk/JTC1/SC2/WG2>"
\&\s-1XXXXX\s0 UnicodeX \s-1XX ISO XXX  ISO/IEC 10646 UCS\s0(Universal
Character Set)X \s-1XXX  ISO/IEC JTC1/SC2/WG2X X XXX. \s0
.IP "<http://www.cl.cam.ac.uk/~mgk25/unicode.html>" 4
.IX Item "<http://www.cl.cam.ac.uk/~mgk25/unicode.html>"
.Vb 1
\&  XXX/XXXXX XXXXX UTF\-8 XXX XX XXX(FAQ)
.Ve
.IP "<http://wiki.kldp.org/Translations/html/UTF8\-Unicode\-KLDP/UTF8\-Unicode\-KLDP.html>" 4
.IX Item "<http://wiki.kldp.org/Translations/html/UTF8-Unicode-KLDP/UTF8-Unicode-KLDP.html>"
.Vb 1
\&  XXX/XXXXX XXXXX UTF\-8 XXX XX XXX(FAQ)X  XXX XX
.Ve
.SH "SEE ALSO"
.IX Header "SEE ALSO"
Encode, Encode::KR, encoding, perluniintro, perlunicode
.SH "AUTHORS"
.IX Header "AUTHORS"
Jarkko Hietaniemi <jhi@iki.fi>
\&\s-1XXX\s0 <jshin@mailaps.org>
