Message-ID: <4RCRhf$Mj5@newsmth.net>
Subject: Re: ���一���募���取��冉系�����
Date: Sun, 19 Nov 2006 11:09:08 +0000
From: happierbee@newsmth.net-SPAM.no (����也���模���知也����)
Path: news.cnusenet.org!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-cn.bbs.comp.lang.perl.mbox.zip!g2news2.google.com!news1.google.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.simtel.ru!Simtel.RU!news.newsmth.net!NEWSMTH
Newsgroups: cn.bbs.comp.lang.perl
Organization: 水木����
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: Perl/J/M.1163934521.U0
Xref: news.cnusenet.org cn.bbs.comp.lang.perl:30117

#! /usr/bin/perl -w
my $str = 'abcd';
my $hex = unpack("H*", $str);
print "Hex value of '$str' is: '$hex'\n";

OUTPUT:
Hex value of 'abcd' is: '61626364'

�� �� vivalinux (linux) �拇������到: ��
: thanks����������������一�����,������讯����频����转��为�啥���
: 十����聘�式�兀������频���莶����址���式��示�模�������一�����。


--

�� ��源:��水木���� newsmth.net��[FROM: 211.151.89.*]