[PerlChina] China-pm Digest, Vol 11, Issue 3

Chandle WEi chandle.wei at gmail.com
Sun Mar 19 16:50:46 PST 2006


舍么编码,我则么显示都是乱码

2006/3/19, china-pm-request at pm.org <china-pm-request at pm.org>:
> Send China-pm mailing list submissions to
>         china-pm at pm.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://mail.pm.org/mailman/listinfo/china-pm
> or, via email, send a message with subject or body 'help' to
>         china-pm-request at pm.org
>
> You can reach the person managing the list at
>         china-pm-owner at pm.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of China-pm digest..."
>
>
> Today's Topics:
>
>    1. Re:  China-pm Digest, Vol 10, Issue 11 (cnhack TNT)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 19 Mar 2006 03:36:12 +0800
> From: "cnhack TNT" <cnhacktnt at gmail.com>
> Subject: Re: [PerlChina] China-pm Digest, Vol 10, Issue 11
> To: china-pm at pm.org
> Message-ID:
>         <f6f3441f0603181136s3df9ff11x9ae87badfdb7ed6b at mail.gmail.com>
> Content-Type: text/plain; charset="gb2312"
>
> hi!xiyu lu,
>    ����Ӧ���з���ʵ�֣���һʱû�������Ǻǣ��� TIMTOWTDI ��кܶ෽�ģ�
>
> > #!/usr/bin/perl -W
> > # cnhacktnt {AT} perlchina.org
> > use strict;
> >
> > my $pattern = "RRWWXXWW";
> > my $char = "X";
> > my $string = "11001010";
> > print $pattern,"\n";
> > substr( $string,pos( $pattern )-1,1 )=$char while ( $pattern=~ m/$char/g
> > );
> > print $string;
> >
> ���ϵĴ���Ӧ���ܺܺõ���������enjoy :-)
>
>
> On 2/17/06, xiyu lu <phoeneer at gmail.com> wrote:
> >
> > лл, �ҵ������Ƕ���һ���ַ���"RRWWXXWW", ����ȡ����'X'���ַ���λ��,�滻��һ���ַ���"11001010"����Ӧλ�õ��ַ�Ϊ'X',
> > �滻�����ַ�����"1100XX10",
> > �������Ѿ���split/join�ķ�ʽ����ת��Ȼ���Ƚ���.����֪����s/pattern/replacement���Ƿ�����ͨ����������ʽ����ʵ��?
> > ����ֻ��ͨ������ת���ķ�ʽʵ��?
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://mail.pm.org/pipermail/china-pm/attachments/20060319/99b0b905/attachment.htm
>
> ------------------------------
>
> _______________________________________________
> China-pm mailing list
> China-pm at pm.org
> http://mail.pm.org/mailman/listinfo/china-pm
>
> End of China-pm Digest, Vol 11, Issue 3
> ***************************************
>


More information about the China-pm mailing list