perltw man page on AIX
[printable version]
PERLTW(1) Perl Programmers Reference Guide PERLTW(1)
NAME
perltw - ���餤�� Perl ��n
DESCRIPTION
�w��Ө� Perl ���Ѧa!
�q 5.8.0 ���}�l, Perl ��ƤF������ Unicode (�U��X) �䴩,
�]�s�a�䴩�F�\�h�B�y�t�H�~���s�X�覡; CJK (������) �K�O�䤤���@����.
Unicode �O��کʪ��з�, �չϲ[�\�@�ɤW�Ҧ����r��: ���@��, �F��@��,
�H�Ψ�����@�� (��þ��, �Q�Ȥ�, ��B��, �ƧB�Ӥ�, �L�פ�, �L�a�w��, ����).
���]�e�ǤF�h�ا@�~�t�λP���O (�p PC �γ���).
Perl �����H Unicode �i��@. �o��� Perl �������r���ƥi�� Unicode ���;
Perl ���禡�P��� (�Ҧp���W��ܦ����) �]��� Unicode �i��@. �b��J�ο�X��,
���F�B�z�H Unicode ���e���s�X�覡�x�s�����, Perl ���ѤF Encode �o�ӼҲ�,
�i�H��A����aŪ��μg�J�¦����s�X���.
Encode ����Ҳդ䴩�U�C���餤�媺�s�X�覡 ('big5' ��� 'big5-eten'):
big5-eten Big5 �s�X (�t�ʤѩ���r��)
big5-hkscs Big5 + ����~�r��, 2001 �~��
cp950 �r�X�� 950 (Big5 + �L�n�K�[���r��)
�⎪�Ҩӻ�, �N Big5 �s�X���ɮ��ন Unicode, ������J�U�C��O:
perl -Mencoding=big5,STDOUT,utf8 -pe1 < file.big5 > file.utf8
Perl �]�����F "piconv", �@�䧹���H Perl �g�����r���ഫ�u��{��, �Ϊk�p�U:
piconv -f big5 -t utf8 < file.big5 > file.utf8
piconv -f utf8 -t big5 < file.utf8 > file.big5
�t�~, �Q�� encoding �Ҳ�, �A�i�H����g�X�H�r�Ŭ���쪺�{���X, �p�U�ҥ�:
#!/usr/bin/env perl
# �Ұ� big5 �r��ѪR; �зǿ�X�J�μзǿ�~���]�� big5 �s�X
use encoding 'big5', STDIN => 'big5', STDOUT => 'big5';
print length("�d�m"); # 2 (�����ܦr��)
print length('�d�m'); # 4 (�����ܦ줸��)
print index("�ναл�", "να"); # -1 (���]�t���l�r��)
print index('�ναл�', 'να'); # 1 (�q�ĤG�Ӧ줸�ն}�l)
�b��@�C�Ҥl��, "��" ���ĤG�Ӧ줸�ջP "��" ���Ĥ@�Ӧ줸�յ��X�� Big5 �X�� "ν";
"��" ���ĤG�Ӧ줸�իh�P "��" ���Ĥ@�Ӧ줸�յ��X�� "α". �o�ѨM�F�H�e Big5
�X���B�z�W�`�������D.
�B�~������s�X
�p�G�ݭn��h������s�X, �i�H�q CPAN (<http://www.cpan.org/>) �U��
Encode::HanExtra �Ҳ�. ���ثe���ѤU�C�s�X�覡:
cccii 1980 �~��ط⎪�������T�洫�X
euc-tw Unix ����r�Ŷ�, �]�t CNS11643 ���� 1-7
big5plus ����Ʀ�ƧN��s���⎪�� Big5+
big5ext ����Ʀ�ƧN��s���⎪�� Big5e
�t�~, Encode::HanConvert �Ҳիh���ѤF²�c�ഫ�Ϊ���ؽs�X:
big5-simp Big5 ���餤��P Unicode ²�餤�夬��
gbk-trad GBK ²�餤��P Unicode ���餤�夬��
�Y�Q�b GBK �P Big5 ��������, �аѦҸӼҲդ����� b2g.pl �P g2b.pl ���{��,
�Φb�{�����ϥΤU�C�g�k:
use Encode::HanConvert;
$euc_cn = big5_to_gb($big5); # �q Big5 �ର GBK
$big5 = gb_to_big5($euc_cn); # �q GBK �ର Big5
�i�@�B����T
�аѦ� Perl �������j�q������ (�������O�έ^��g��), �ӾDzߧ�h��� Perl ������,
�H�� Unicode ���ϥΤ覡. ���L, �~�����귽�۷��״I:
���� Perl �귽
<http://www.perl.com/>
Perl ������ (�Ѽڵ�§���q���@)
<http://www.cpan.org/>
Perl ��X���ú� (Comprehensive Perl Archive Network)
<http://lists.perl.org/>
Perl �l���¤@��
�Dz� Perl ����}
<http://www.oreilly.com.tw/chinese/perl/index.html>
���餤�媩���ڵ�§ Perl ����
<http://groups.google.com/groups?q=tw.bbs.comp.lang.perl>
�O�W Perl �s�u�Q�װ� (�]�N�O�U�j BBS �� Perl �s�u��)
Perl �ϥ��⎪
<http://www.pm.org/groups/asia.html>
�O�W Perl ��s�դ@��
<http://irc.elixus.org/>
��ߨ�u�W��ѫ�
Unicode �����}
<http://www.unicode.org/>
Unicode �dzN�Ƿ⎪ (Unicode �зǪ���w��)
<http://www.cl.cam.ac.uk/%7Emgk25/unicode.html>
Unix/Linux �W�� UTF-8 �� Unicode ���Ȱ�
����Ƹ�T
������s "���餤��" ���s "�c�餤��"?
<http://www.csie.ntu.edu.tw/~b7506051/mozilla/faq.html#faqglossary>
����Ƴn���p��
<http://www.cpatch.org/>
Linux �n�餤��ƭp��
<http://www.linux.org.tw/CLDP/>
SEE ALSO
Encode, Encode::TW, encoding, perluniintro, perlunicode
AUTHORS
Jarkko Hietaniemi <jhi@iki.fi>
Audrey Tang (���) <audreyt@audreyt.org>
perl v5.8.8 2008-09-19 PERLTW(1)
[top]
_ _ _
| | | | | |
| | | | | |
__ | | __ __ | | __ __ | | __
\ \| |/ / \ \| |/ / \ \| |/ /
\ \ / / \ \ / / \ \ / /
\ / \ / \ /
\_/ \_/ \_/
More information is available in HTML format for server AIX
List of man pages available for AIX
Copyright (c) for man pages and the logo by the respective OS vendor.
For those who want to learn more, the polarhome community provides shell access and support.
[legal]
[privacy]
[GNU]
[policy]
[cookies]
[netiquette]
[sponsors]
[FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
|
Vote for polarhome
|