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 : 172.67.192.52 | your ip : 10.244.126.0
safemode OFF
 >  / usr / share / perl5 / pod /
Filename/usr/share/perl5/pod/perltw.pod
Size5.26 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.

The following documentation is written in Big5 encoding.

��你������編輯��覽�份�件, �忽��中���註��符.
�份�件�以 POD (簡��件格�) 寫�; �種格������人����,
���設��. ��此格����步��, ��� perlpod ���件.

=encoding big5

=head1 NAME

perltw - 正�中� Perl ��

=head1 DESCRIPTION

歡��� Perl �天�!

� 5.8.0 ���, Perl ������ Unicode (��碼) ��,
��帶���許����系以��編碼��; CJK (中��) 便��中���份.
Unicode �������, 試�涵��������符: 西���, ����,
以������� (���, ����, ��伯�, �伯��, �度�,
����, ��). ��容���種�業系統�平� (� PC �麥��).

Perl �身以 Unicode ����. �表示 Perl ����串���� Unicode
表示; Perl �����符 (��正�表示���) ��� Unicode ����.
�輸��輸��, ����以 Unicode ���編碼�������, Perl
��� Encode ��模�, �以�你������寫����編碼��.

Encode 延伸模�����正�中��編碼�� ('big5' 表示 'big5-eten'):

big5-eten Big5 編碼 (��天延伸�形)
big5-hkscs Big5 + �港���, 2001 年�
cp950 �碼� 950 (Big5 + 微�添���符)

���說, � Big5 編碼����� Unicode, �������令:

perl -Mencoding=big5,STDOUT,utf8 -pe1 < file.big5 > file.utf8

Perl ���� "piconv", ����以 Perl 寫���符��工���, ����:

piconv -f big5 -t utf8 < file.big5 > file.utf8
piconv -f utf8 -t big5 < file.utf8 > file.big5

��, �� encoding 模�, 你�以��寫�以�符������碼, ���示:

#!/usr/bin/env perl
# �� big5 �串解�; ��輸������誤�設� big5 編碼
use encoding 'big5', STDIN => 'big5', STDOUT => 'big5';
print length("駱�"); # 2 (���表示�符)
print length('駱�'); # 4 (���表示���)
print index("���誨", "�帢"); # -1 (���此��串)
print index('���誨', '�帢'); # 1 (�第�������)

�������裡, "�" �第������ "�" �第�������� Big5
碼� "�"; "�" �第������� "�" �第�������� "帢".
�解決�以� Big5 碼�����常����.

=head2 ���中�編碼

�������中�編碼, �以� CPAN (L<http://www.cpan.org/>) ��
Encode::HanExtra 模�. �������編碼��:

cccii 1980 年�建��中���交�碼
euc-tw Unix 延伸�符�, �� CNS11643 平� 1-7
big5plus 中�������廣���� Big5+
big5ext 中�������廣���� Big5e

��, Encode::HanConvert 模�����簡������種編碼:

big5-simp Big5 正�中�� Unicode 簡�中���
gbk-trad GBK 簡�中�� Unicode 正�中���

��� GBK � Big5 ����, ���該模���� b2g.pl � g2b.pl ����,
�����使���寫�:

use Encode::HanConvert;
$euc_cn = big5_to_gb($big5); # � Big5 �� GBK
$big5 = gb_to_big5($euc_cn); # � GBK �� Big5

=head2 ��步���

��� Perl ���大�說��件 (�幸�����寫�), �學�����
Perl ���, 以� Unicode �使���. ��, ���������:

=head2 �� Perl ���網�

=over 4

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

Perl ��� (���禮��維護)

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

Perl ����網 (Comprehensive Perl Archive Network)

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

Perl �����覽

=back

=head2 學� Perl �網�

=over 4

=item L<http://www.oreilly.com.tw/chinese/perl/index.html>

正�中�����禮 Perl ��

=item L<http://groups.google.com/groups?q=tw.bbs.comp.lang.perl>

�� Perl ����� (�就��大 BBS � Perl ���)

=back

=head2 Perl 使����

=over 4

=item L<http://www.pm.org/groups/asia.html>

�� Perl �廣��覽

=item L<http://irc.elixus.org/>

������天室

=back

=head2 Unicode ��網�

=over 4

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

Unicode 學�學� (Unicode ������)

=item L<http://www.cl.cam.ac.uk/%7Emgk25/unicode.html>

Unix/Linux �� UTF-8 � Unicode �客�

=back

=head2 中����

=over 4

=item ��麼� "正�中�" �� "��中�"?

L<http://www.csie.ntu.edu.tw/~b7506051/mozilla/faq.html#faqglossary>

=item 中������

L<http://www.cpatch.org/>

=item Linux ��中����

L<http://www.linux.org.tw/CLDP/>

=back

=head1 SEE ALSO

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

=head1 AUTHORS

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

Audrey Tang (å��é³³) E<lt>[email protected]<gt>

=cut