b374k
m1n1 1.01
Apache/2.2.15 (CentOS)
Linux obd60-6c49958d75-2q7cw 5.4.0-174-generic #193-Ubuntu SMP Thu Mar 7 14:29:28 UTC 2024 x86_64
uid=48(apache) gid=48(apache) groups=48(apache)
server ip : 104.21.65.202 | your ip : 10.244.126.0
safemode OFF
 >  / usr / share / perl5 / pod /
Filename/usr/share/perl5/pod/perlko.pod
Size7.71 kb
Permissionrw-r--r--
Ownerapache
Create time23-Dec-2025 17:41
Last modified22-Mar-2017 16:32
Last accessed22-Apr-2026 00:50
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
If you read this file _as_is_, just ignore the funny characters you
see. It is written in the POD format (see perlpod manpage) which is
specially designed to be readable as is.

This file is in Korean encoded in EUC-KR.

� 문�를 perldoc� �� 보� �고 �� 보� 경��� � ���
��� ���기 �� �� =head, =item, 'L' �� 무�����.
� 문�� �� perldoc� �� �고 보��� ��� � ���
�� POD ���� �� ����. � ��� �� perlpod
매��� 참고����.

=encoding euc-kr

=head1 NAME

perlko - Perl과 �국� ���

=head1 DESCRIPTION

Perl� ��� �� �� ����� !


Perl� 5.8.0��� ����/ISO 10646� �� ���� ��� ���.
���� ��� ���� ���� �롯� �� �국��
���� ��� �고 ��고 ��� �리 ��고 �� ��� ����
�����. ����� � ���� ��� 모� ��를 �� �기 체� -
��� �� ��벳, �릴 ��벳, 그리� ��벳, ��� �� ����
��미 �� ��립�, �� 문�, ��리 문�, ���� ��, �국�� ��,
�본�� ��, �미 ���� �기 체� �-를 ���� �� 목�� �고
�기 �문� 기존� ��� � �� � 국� 그리고 �� 체�� 고��
문� ��과 ���� � � �� 모� ��� 물론�고 기존 문� ����
���고 �� �� �주 �� ��를 ���고 ����.


Perl� ����� ����를 문� ��� �� �����. 보� 구체���
��면 Perl ��립� ��� UTF-8 문��� � � �고,
�� ��� ���(�를 ��, ���, index, substr)� ��� ��
�� ���� �� ��� �����. (� ��� ��
perlunicode 매��� 참고����.) ����� �리 보��기 ��
�리 ��고 ��고, ��� �리 ��고 �� �국/� ��� �����
��력� �고 �� ����� � ���� 문�를 �루� �� �기 ��
'Encode'� �����. 무�보� 'Encode'를 �� ��� ��� ���
��� �� � � ����.

'Encode'� ��과 �� �국� ���� �����.

=over 4

=item euc-kr

US-ASCII� KS X 1001� �� �� ����� ��� (�� �����고
�림.) KS X 2901과 RFC 1557 참고.

=item cp949

MS-Windows 9x/ME�� ��� �� ���. euc-kr� 8,822��
�� ��� �� ��. alias� uhc, windows-949, x-windows-949,
ks_c_5601-1987. 맨 ��� ��� ���� �� �����, Microsoft
���� CP949� �미� ��고 ��.

=item johab

KS X 1001:1998 �� 3�� ��� 조��. 문� ���리� cp949�
�찬��� US-ASCII� KS X 1001� 8,822�� �� ��� �� ��.
��� 방�� �� ��.

=item iso-2022-kr

RFC 1557�� ��� �국� ��� �� ��� ����� US-ASCII�
KS X 1001� ���리� �� ��� euc-kr과 ��� ��� 방�� ��.
1997-8� 경�� ���� � �� �� ��� ��� ��.

=item ksc5601-raw

KS X 1001(KS C 5601)� GL(�, MSB를 0�� � 경�) � ��� ��
���. US-ASCII� 결��� �고 ���� ��� �� X11 ��� �꼴
��� (ksc5601.1987-0. '0'� GL� �미�.)�� ��� �� ���고�
거� ��. KS C 5601� 1997� KS X 1001� ��� �꾸��. 1998��� �
�� (��� ��� �� �� ��)� ����.

=back

� �� �� ��를 ��� 보���.

�를 ��, euc-kr ����� � ��� UTF-8� ���려면 ��과
�� �면 ���.


perl -Mencoding=euc-kr,STDOUT,utf8 -pe1 < file.euckr > file.utf8

���� ��과 �� � � ����.

perl -Mencoding=utf8,STDOUT,euc-kr -pe1 < file.utf8 > file.euckr

�� ��� �� �리�� � � ��� Encode 모�� ��
���� Perl�� �� piconv� Perl� �� ����.
그 ���� � � ��� piconv� Unix� �� iconv를
모�� � ����. 그 ���� ��� ����.

piconv -f euc-kr -t utf8 < file.euckr > file.utf8
piconv -f utf8 -t euc-kr < file.utf8 > file.euckr

�, 'PerlIO::encoding' 모�� �� �국� ���� �면� �� ��
(��� ��� ���) �리를 �� � � ����.

#!/path/to/perl

use encoding 'euc-kr', STDIN => 'euc-kr',
STDOUT-> 'euc-kr', STDERR=>'euc-kr';

print length("��"); # 2 (� ���� �� �� �리를 ��)
print length('��'); # 4 (�� ���� ��� �� �리를 ��)
print index("��, ���", "�"); # -1 ('�'� ��)
print index('��, ���', '�'); # 7 (8�째� 9�째 ���� '�'�
���과 ���.)


=head2 � ��� �고 ��면...

Perl� ���면 ��� ��� 문�� �� �� �며, � 문�를 ��
Perl �� � ��� ���� ��, Encode� ��� �� �� ��
배� � ����. �� � 문�� �� 모� ��� �� ����.


=head2 Perl �련 ��

��� ��� 문� ��� ��과 �� ��� ����. � 목�� 결�
��� �� ��고 �� ���� �� 모� ����.

=over 4

=item L<http://www.perl.com/>

O'Reilly� Perl � ���

=item L<http://www.cpan.org/>

Comprehensive Perl Archive Network

=item L<http://lists.perl.org/>

Perl ��� 리��. �� 리�� ���
perl-unicode�� 'Encode'� �� ���.

=back

=head2 Perl� � �� 공���� ��� � � �� �국� �련 ���

=over 4

=item L<http://www.perl.or.kr/>

Perl �국 ��� 모�

=item L<news:han.comp.lang.perl/>

�국� Perl �� 그룹

=item L<http://seoul.pm.org/>

Perl �거� (��)

=item L<http://www.perlmania.or.kr/>

Home for Korean Perlmanias

=item L<http://www.oreilly.co.kr/perl/>

O'Reilly�� �� �국� Perl �� 목�

=item L<http://www.perlschool.net/>

Perl 기� �� � ��, �근 ��, �련 �� ��� ��

=item L<http://www.perl.co.kr>

Perl� �련� CGI, DB, �� �� �� �보 � �� �공

=back

=head2 ���� � �국� ��� �련 ��

=over 4

=item L<http://www.unicode.org/>

���� 컨���.

=item L<http://std.dkuug.dk/JTC1/SC2/WG2>

기본��� Unicode� �� ISO ��� ISO/IEC 10646 UCS(Universal
Character Set)� ��� ISO/IEC JTC1/SC2/WG2� � ���.

=item L<http://jshin.net/faq/qa8.html>

�국� 문� �� � ���� �� ��.

=item L<http://www.cl.cam.ac.uk/~mgk25/unicode.html>

���/리���� ����� UTF-8 ��� �� 문��(FAQ)

=item L<http://kldp.org/Translations/html/UTF8-Unicode-KLDP/UTF8-Unicode-KLDP.html>

���/리���� ����� UTF-8 ��� �� 문��(FAQ)� �국� ��

=back

=head1 SEE ALSO

L<Encode>, L<Encode::KR>, L<encoding>, L<perluniintro>, L<perlunicode>


=head1 AUTHORS

Jarkko Hietaniemi E<lt>[email protected]<gt>
ì� ì �ì�� E<lt>[email protected]<gt>

=cut