1PERLKO(1) Perl Programmers Reference Guide PERLKO(1)
2
3
4
6 perlko - PerlXX XXXXXXXX XXXXXXX
7
9 PerlXXX XXXXXXXX XXXXX XXXXX XXXXXXXXXXXXXX !
10
11 PerlXXX 5.8.0XXXXXXXX XXXXXXXXXXX/ISO 10646XXX XXXXXX XXXXXXXXXX
12 XXXXXXXX XXXXXXXX. XXXXXXXXXXX XXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXX
13 XXXXX XXXXXXXXXX XXXXXXXXXXX XXXXXXXX XXXXX XXXXXXXX XXXXXXX XXXXX
14 XXXXXXX XXXXXX XXXXXXXX XXXXXXXXXX XXXXXXXXXXXXX. XXXXXXXXXXXXXX XXX
15 XXXXXXXXXXX XXXXXXX XXXX XXXXXXX XXXXXX XXXXX XXXX - XXXXXXXX XXXXX
16 XXXXXXXX, XXXX XXXXXXXX, XXXXXX XXXXXXXX, XXXXXXXX XXXXXX XXXXXXXXXXXX
17 XXXXXXX XXXXX XXXXXXXXX, XXXXXX XXXX, XXXXXXX XXXX, XXXXXXXXXX XXXXXX,
18 XXXXXXXXXX XXXXX, XXXXXXXXX XXXXX, XXXX XXXXXXXXXXX XXXXX XXXX XXX-XX
19 XXXXXXXXXXX XXXXX XXXXXX XXXXX XXXXX XXXXXXX XXXXXX XXXXXXX XX XXXXX
20 XX XXXX XXXXX XXXXX XXXXXXX XXXXXXXX XXXX XXXXXX XXXXXXXXXX XXX XXX
21 XXXXXX XXXX XXXXXXXX XXXXXXXXX XXX XXXX XXXXXXXXXX XXXXXXXXXX XXXXX
22 XXXXXX XXXXX XXXXX XXXXXXX XXXXXXXXX XXXXXXXXXXX.
23
24 PerlXXX XXXXXXXXXXXXX XXXXXXXXXXXXX XXXX XXXXXXXXX XXXXXX XXXXXXXXXXXX.
25 XXXX XXXXXXXXXXX XXXXXXX Perl XXXXXXXXX XXXXXXXXX UTF-8 XXXXXXXXX XXX
26 XXX XXXXX, XXXX XXXXXXXX XXXXXXX(XXXXX XXXXX, XXXXXXXX, index,
27 substr)XX XXXXXXX XXXXX XXXXXX XXXXXXXXXXX XXXXX XXXXXXX
28 XXXXXXXXXXXXXX. (XXX XXXXXXXX XXXXX perlunicode XXXXXXXX
29 XXXXXXXXXXXXXXXX.) XXXXXXXXXXXXX XXXXX XXXXXXXXX XXXXXX XXXXX XXXXXXX
30 XXXXXXXX, XXXXXXXX XXXXX XXXXXXX XXXXXX XXXX/XX XXXXXXX XXXXXXXXXXXX
31 XXXXXXXXXX XXXXX XXXXX XXXXXXXXXXXX XXX XXXXXXXXX XXXXXX XXXXXXX XXXXX
32 XXXXX XXXXX 'Encode'XX XXXXXXXXXXXXX. XXXXXXXX 'Encode'XX XXXXX
33 XXXXXXXX XXXXXXXX XXXXXXX XXXXXXXX XXXXX XXX XXX XXXXXXXXXXX.
34
35 'Encode'XXX XXXXXXX XXXXX XXXXXXXX XXXXXXXXXX XXXXXXXXXXXXX.
36
37 euc-kr
38 US-ASCIIXXX KS X 1001XXX XXXXX XXXXX XXXXXXXXXXXX XXXXXXXX (XXXXXX XXXXXXXXXXXXXXX
39 XXXX.) KS X 2901XX RFC 1557 XXXX.
40
41 cp949
42 MS-Windows 9x/MEXXXXXX XXXXXXX XXXXXX XXXXXXXX. euc-krXXX 8,822XXXXXX
43 XXXXX XXXXXXXXX XXXXXX XXXXX. aliasXXX uhc, windows-949, x-windows-949,
44 ks_c_5601-1987. XX XXXXXX XXXXXXXX XXXXXXXXXXX XXXXXX XXXXXXXXXXXX, Microsoft
45 XXXXXXXXXXXX CP949XXX XXXXXXX XXXXXXX XXXXXX.
46
47 johab
48 KS X 1001:1998 XXXX 3XXXXXX XXXXXXXX XXXXXX. XXXX XXXXXXXXXXXX cp949XXX
49 XXXXXXXXXX US-ASCIIXXX KS X 1001XXX 8,822XXXXXX XXXXX XXXXXXXXX XXXXXX XXXXX.
50 XXXXXXXX XXXXXXX XXXXXX XXXXX.
51
52 iso-2022-kr
53 RFC 1557XXXXXX XXXXXXXX XXXXXXXX XXXXXXX XXXXX XXXXXXXX XXXXXXXXXXXX US-ASCIIXXX
54 KS X 1001XXX XXXXXXXXXXXX XXXXXX XXXXXXXXX euc-krXX XXXXXX XXXXXXXX XXXXXXX XXXXX.
55 1997-8XXX XXXXXX XXXXXXXXXX XXX XXXXX XXXXX XXXXXXXX XXXXXXX XXXXXX.
56
57 ksc5601-raw
58 KS X 1001(KS C 5601)XXX GL(XX, MSBXX 0XXXXX XXX XXXX) XXX XXXXXXXXX XXXXXX
59 XXXXXXXX. US-ASCIIXXX XXXXXXXX XXXXX XXXXXXXXXX XXXXXXX XXXXX X11 XXXXXXXX XXX
60 XXXXXXXX (ksc5601.1987-0. '0'XXX GLXXX XXXXXXX.)XXXXX XXXXXXX XXXXX XXXXXXXXXXXXX
61 XXXX XXXXXX. KS C 5601XXX 1997XXX KS X 1001XX XXXXXXXX XXXXXXXXX. 1998XXXXXXXXX XXX
62 XXXXX (XXXXXXXX XXXXXXX XXXXX XXXXXX XXXXX)XX XXXXXXXXXXX.
63
64 XX XXXX XXXXX XXXXXXXX XXXXXXXXX XXXXXXXXXX.
65
66 XXXXX XXXXX, euc-kr XXXXXXXXXXXX XXX XXXXXXXX UTF-8XX XXXXXXXXXXXX
67 XXXXXX XXXXX XXXXX XXXXXXXX.
68
69 perl -Mencoding=euc-kr,STDOUT,utf8 -pe1 < file.euckr > file.utf8
70
71 XXXXXXXXXXX XXXXXXX XXXXX XXX XXX XXXXXXXXXXX.
72
73 perl -Mencoding=utf8,STDOUT,euc-kr -pe1 < file.utf8 > file.euckr
74
75 XXXXX XXXXXXXX XXXXX XXXXXXXXX XXX XXX XXXXXXXX Encode XXXXXXX XXXXX
76 XXXXXXXXXXX PerlXXXX XXXXX piconvXX PerlXXX XXXXX XXXXXXXXXXX.
77 XX XXXXXXXXXXX XXX XXX XXXXXXXXX piconvXXX UnixXXX XXXXXX iconvX
78 XXXXXX XXX XXXXXXXXXXX. XX XXXXXXXXXX XXXXXXXXX XXXXXXXXXX.
79
80 piconv -f euc-kr -t utf8 < file.euckr > file.utf8
81 piconv -f utf8 -t euc-kr < file.utf8 > file.euckr
82
83 XXX, 'PerlIO::encoding' XXXXXXX XXXXX XXXXXXXX XXXXXXXXXX XXXXXXX XXXXX XXXXX
84 (XXXXXXX XXXXXXX XXXXXXXXX) XXXXXX XXXXX XXX XXX XXXXXXXXXXX.
85
86 #!/path/to/perl
87
88 use encoding 'euc-kr', STDIN => 'euc-kr',
89 STDOUT-> 'euc-kr', STDERR=>'euc-kr';
90
91 print length("XXXXX"); # 2 (XXX XXXXXXXXXX XXXXX XXXXX XXXXXX XXXXX)
92 print length('XXXXX'); # 4 (XXXXXX XXXXXXXXXX XXXXXXX XXXXX XXXXXX XXXXX)
93 print index("XXXXX, XXXXXXXX", "XXX"); # -1 ('XXX'XXX XXXXXX)
94 print index('XXXXX, XXXXXXXX', 'XXX'); # 7 (8XXXXXX 9XXXX XXXXXXXXX 'XXX'XXX
95 XXXXXXXXX XXXXXXXX.)
96
97 XXX XXXXXXXX XXXXX XXXXXX...
98 PerlXXX XXXXXXXXXX XXXXXXXX XXXXXXXX XXXXXX XXXXX XXXXX XXXX, XXX XXXXXX XXXX
99 Perl XXXXX XX XXXXXXXXX XXXXXXXXXXX XXXXX, EncodeXXX XXXXXXX XXXXX XXXXX XXXXX
100 XXXX XXX XXXXXXXXXXX. XXXXX XXX XXXXXXX XXXXXX XXXX XXXXXXXX XXXXX XXXXXXXXXXX.
101
102 Perl XXXXX XXXXX
103 XXXXXXXXX XXXXXXXX XXXX XXXXXXXX XXXXXXX XXXXX XXXXXXX XXXXXXXXXXX.
104 XXX XXXXXXX XXXX XXXXXXXXX XXXXX XXXXXXXX XXXXX XXXXXXXXXXXX XXXX XXXX
105 XXXXXXXXXXX.
106
107 <http://www.perl.com/>
108 O'ReillyXXX Perl XXX XXXXXXXX
109
110 <http://www.cpan.org/>
111 Comprehensive Perl Archive Network
112
113 <http://lists.perl.org/>
114 Perl XXXXXXX XXXXXX. XXXXX XXXXXX XXXXXX
115 perl-unicodeXXXXXX 'Encode'XXX XXXXXX XXXXXXXX.
116
117 PerlXXX XXX XXXX XXXXXXXXXXXXX XXXXXXXXX XX XXX XXXXXX XXXXXXXX XXXXX
118 XXXXXX
119 <http://www.perl.or.kr/>
120 Perl XXXXX XXXXXXX XXXX
121
122 <news:han.comp.lang.perl/>
123 XXXXXXXX Perl XXXXX XXX
124
125 <http://seoul.pm.org/>
126 Perl XXXXXX (XXXXXX)
127
128 <http://www.perlmania.or.kr/>
129 Home for Korean Perlmanias
130
131 <http://www.oreilly.co.kr/perl/>
132 O'ReillyXXXXXX XXXXXX XXXXXXXX Perl XXXXXX XXXX
133
134 <http://www.perlschool.net/>
135 Perl XXXX XXXX XX XXXXXX, XXXX XXXXXX, XXXXX XXXXX XXXXXXX XXXXX
136
137 <http://www.perl.co.kr>
138 PerlXXX XXXXXXX CGI, DB, XXXXX XXXXX XXXXXX XXXXX XX XXXXX XXXX
139
140 XXXXXXXXXXX XX XXXXXXXX XXXXXXXX XXXXX XXXXX
141 <http://www.unicode.org/>
142 XXXXXXXXXXX XXXXXXXXXX.
143
144 <http://std.dkuug.dk/JTC1/SC2/WG2>
145 XXXXXXXXXXX UnicodeXXX XXXXX ISO XXXXXXXX ISO/IEC 10646
146 UCS(Universal Character Set)XXX XXXXXXXX ISO/IEC JTC1/SC2/WG2XXX
147 XXX XXXXXXXX.
148
149 <http://jshin.net/faq/qa8.html>
150 XXXXXXXX XXXX XXXXX XX XXXXXXXXXX XXXXXX XXXXXX.
151
152 <http://www.cl.cam.ac.uk/~mgk25/unicode.html>
153 XXXXXXXXX/XXXXXXXXXXXX XXXXXXXXXXXXXX UTF-8 XXXXXXX XXXXXX XXXXXX(FAQ)
154
155 <http://kldp.org/Translations/html/UTF8-Unicode-KLDP/UTF8-Unicode-KLDP.html>
156 XXXXXXXXX/XXXXXXXXXXXX XXXXXXXXXXXXXX UTF-8 XXXXXXX XXXXXX XXXXXX(FAQ)XXX XXXXXXXX XXXXX
157
159 Encode, Encode::KR, encoding, perluniintro, perlunicode
160
162 Jarkko Hietaniemi <jhi@iki.fi> XXXXXXXXX <jshin@mailaps.org>
163
164
165
166perl v5.10.1 2009-02-12 PERLKO(1)