From gaochundong at gmail.com Wed Jul 5 22:52:17 2006 From: gaochundong at gmail.com (Gao Aaron) Date: Thu, 6 Jul 2006 13:52:17 +0800 Subject: [PerlChina] =?gb2312?b?WUFQQzo6TkE6OjIwMDYg1qW807jn?= In-Reply-To: <019d01c69ccf$f28f03a0$0801a8c0@james> References: <4ab5ddef0606230458xecd92c2qfc580082a658d1f1@mail.gmail.com> <74646cb40606232206x6eca6357sabe5bd40ee196bb6@mail.gmail.com> <4ab5ddef0606282255x6d7b0aa5qcea26e76d31f9510@mail.gmail.com> <019d01c69ccf$f28f03a0$0801a8c0@james> Message-ID: <151e51480607052252r41a4a804y35ea2d52f162fc0e@mail.gmail.com> 一直用期待和崇拜的眼神等待真perl6 咋还不出来尼... 期待中... -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/china-pm/attachments/20060706/c0547b98/attachment.html From gaochundong at gmail.com Wed Jul 5 22:54:00 2006 From: gaochundong at gmail.com (Gao Aaron) Date: Thu, 6 Jul 2006 13:54:00 +0800 Subject: [PerlChina] =?gb2312?b?vfHM7NPQutzA5MflsKGhow==?= In-Reply-To: <067901c693b5$56585130$0801a8c0@james> References: <74646cb40605222038p4e84b966j4989c18150831ea5@mail.gmail.com> <200605231345.14218.zhuzhu@perlchina.org> <067901c693b5$56585130$0801a8c0@james> Message-ID: <151e51480607052253h3026f272x41e00e79a6ff41b8@mail.gmail.com> HOHO 找工作找的这么直接 做哪方面的呢? 2006/6/19, James Zheng : > > 如果你在找PERL方面的工作, 发你的简历给我. > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/china-pm/attachments/20060706/9f71c484/attachment.html From haidongj at gmail.com Wed Jul 5 22:56:48 2006 From: haidongj at gmail.com (haidong jia) Date: Thu, 6 Jul 2006 13:56:48 +0800 Subject: [PerlChina] =?gb2312?b?vfHM7NPQutzA5MflsKGhow==?= In-Reply-To: <151e51480607052253h3026f272x41e00e79a6ff41b8@mail.gmail.com> References: <74646cb40605222038p4e84b966j4989c18150831ea5@mail.gmail.com> <200605231345.14218.zhuzhu@perlchina.org> <067901c693b5$56585130$0801a8c0@james> <151e51480607052253h3026f272x41e00e79a6ff41b8@mail.gmail.com> Message-ID: 大家现在用perl做的项目多吗? 本人一直在维护一个站点,perl真的很perl 在06-7-6,Gao Aaron 写道: > > HOHO 找工作找的这么直接 > 做哪方面的呢? > > > 2006/6/19, James Zheng : > > > > 如果你在找PERL方面的工作, 发你的简历给我. > > > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/china-pm/attachments/20060706/51a9afa5/attachment.html From gaochundong at gmail.com Wed Jul 5 23:06:05 2006 From: gaochundong at gmail.com (Gao Aaron) Date: Thu, 6 Jul 2006 14:06:05 +0800 Subject: [PerlChina] =?gb2312?b?vfHM7NPQutzA5MflsKGhow==?= In-Reply-To: References: <74646cb40605222038p4e84b966j4989c18150831ea5@mail.gmail.com> <200605231345.14218.zhuzhu@perlchina.org> <067901c693b5$56585130$0801a8c0@james> <151e51480607052253h3026f272x41e00e79a6ff41b8@mail.gmail.com> Message-ID: <151e51480607052306h28f5dbb2qd73ec65f58244129@mail.gmail.com> 呵呵 perl真的很破 这事可能发生在写webcgi吧 据说过时了 现在据说流行php ror ajax 俺一个都没有接触过 俺用perl每天的工作就是用perl 和shell 写文本或者db到DBI数据库的转换过程--传说中的数据采集 faint 在就是在已经有的perl应用系统上作些扩展 所以总是感觉学艺不精 觉得如果语言编程上无发展就转项目管理和业务分析吧 偶是做通讯行业地 大家给些建议和发展方向 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/china-pm/attachments/20060706/d16e1c54/attachment.html From haidongj at gmail.com Wed Jul 5 23:08:54 2006 From: haidongj at gmail.com (haidong jia) Date: Thu, 6 Jul 2006 14:08:54 +0800 Subject: [PerlChina] =?gb2312?b?vfHM7NPQutzA5MflsKGhow==?= In-Reply-To: <151e51480607052306h28f5dbb2qd73ec65f58244129@mail.gmail.com> References: <74646cb40605222038p4e84b966j4989c18150831ea5@mail.gmail.com> <200605231345.14218.zhuzhu@perlchina.org> <067901c693b5$56585130$0801a8c0@james> <151e51480607052253h3026f272x41e00e79a6ff41b8@mail.gmail.com> <151e51480607052306h28f5dbb2qd73ec65f58244129@mail.gmail.com> Message-ID: 本人迷茫中... 在06-7-6,Gao Aaron 写道: > > 呵呵 > perl真的很破 这事可能发生在写webcgi吧 > 据说过时了 现在据说流行php ror ajax > 俺一个都没有接触过 > > 俺用perl每天的工作就是用perl 和shell > 写文本或者db到DBI数据库的转换过程--传说中的数据采集 faint > 在就是在已经有的perl应用系统上作些扩展 > 所以总是感觉学艺不精 > 觉得如果语言编程上无发展就转项目管理和业务分析吧 > 偶是做通讯行业地 > > 大家给些建议和发展方向 > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/china-pm/attachments/20060706/7bff02e4/attachment.html From shijialee at gmail.com Thu Jul 6 22:00:39 2006 From: shijialee at gmail.com (Qiang ( James ) Li) Date: Fri, 07 Jul 2006 01:00:39 -0400 Subject: [PerlChina] =?gb2312?b?vfHM7NPQutzA5MflsKGhoy0tLSBZQVBDILrcyMg=?= =?gb2312?b?xNYgOik=?= In-Reply-To: References: <74646cb40605222038p4e84b966j4989c18150831ea5@mail.gmail.com> <200605231345.14218.zhuzhu@perlchina.org> <067901c693b5$56585130$0801a8c0@james> <151e51480607052253h3026f272x41e00e79a6ff41b8@mail.gmail.com> <151e51480607052306h28f5dbb2qd73ec65f58244129@mail.gmail.com> Message-ID: <44ADEA77.8010901@gmail.com> haidong jia wrote: > 本人迷茫中... > > 在06-7-6,*Gao Aaron* > 写道: > > 呵呵 > perl真的很破 这事可能发生在写webcgi吧 > 据说过时了 现在据说流行php ror ajax > 俺一个都没有接触过 > 俺用perl每天的工作就是用perl 和shell > 写文本或者db到DBI数据库的转换过程--传说中的数据采集 faint > 在就是在已经有的perl应用系统上作些扩展 > 所以总是感觉学艺不精 > 觉得如果语言编程上无发展就转项目管理和业务分析吧 > 偶是做通讯行业地 > 大家给些建议和发展方向 > Perl 几乎无所不能, 你说的 数据采集(data mining) 就是其中一个。 如果你想成为一个 Perl 黑客的话,那么常到 Perlmonks 和 其他邮件组上学习, 试着解决其他人的问题,从其他人的答案里学习。总之是需要兴趣,时间和个人的 努力了。 这次北美 YAPC 大会上我问了很多人一个问题 (oh, 这次大会大概有 400 多人参 与),即 "工作中用 Perl 做什么"。很大一部分 Perl 程序员都是编写网络程序 的,比如说来自 ticketmaster, bbc , valueclick 的与会者。还碰到了几个使用 Perl 做 data mining 的朋友,都是做 生物 和 药业的。一起喝酒聊天时,了解 到了一个有趣的使用 Perl 的例子:这位朋友的公司是给酒店提供电视节目 付费 选台 软件服务的,向北美 4000 多家酒店提供服务。还有一个公司是给各大航空 公司提供网上定购机票服务的。 Perl 的使用其实很广泛,但很多时候都是不为人所知的。其实举手投足之间你就 可能用到了 Perl (至少在北美/欧洲是这样) :-) Qiang From zhuzhu at perlchina.org Thu Jul 6 22:14:37 2006 From: zhuzhu at perlchina.org (zhu zhu) Date: Fri, 07 Jul 2006 13:14:37 +0800 Subject: [PerlChina] =?utf-8?b?5LuK5aSp5pyJ5b6I5Ya35riF5ZWK44CCLS0tIFlB?= =?utf-8?b?UEMg5b6I54Ot6Ze5IDop?= In-Reply-To: <44ADEA77.8010901@gmail.com> References: <74646cb40605222038p4e84b966j4989c18150831ea5@mail.gmail.com> <200605231345.14218.zhuzhu@perlchina.org> <067901c693b5$56585130$0801a8c0@james> <151e51480607052253h3026f272x41e00e79a6ff41b8@mail.gmail.com> <151e51480607052306h28f5dbb2qd73ec65f58244129@mail.gmail.com> <44ADEA77.8010901@gmail.com> Message-ID: 为什么在中国不行? 因为盗版…… 和知识产权…… 在 Fri, 07 Jul 2006 13:00:39 +0800,Qiang ( James ) Li 写道: > haidong jia wrote: >> 本人迷茫中... >> >> 在06-7-6,*Gao Aaron* > > 写道: >> >> 呵呵 >> perl真的很破 这事可能发生在写webcgi吧 >> 据说过时了 现在据说流行php ror ajax >> 俺一个都没有接触过 >> 俺用perl每天的工作就是用perl 和shell >> 写文本或者db到DBI数据库的转换过程--传说中的数据采集 faint >> 在就是在已经有的perl应用系统上作些扩展 >> 所以总是感觉学艺不精 >> 觉得如果语言编程上无发展就转项目管理和业务分析吧 >> 偶是做通讯行业地 >> 大家给些建议和发展方向 >> > Perl 几乎无所不能, 你说的 数据采集(data mining) 就是其中一个。 > 如果你想成为一个 Perl 黑客的话,那么常到 Perlmonks 和 其他邮件组上学习, > 试着解决其他人的问题,从其他人的答案里学习。总之是需要兴趣,时间和个人的 > 努力了。 > > 这次北美 YAPC 大会上我问了很多人一个问题 (oh, 这次大会大概有 400 多人参 > 与),即 "工作中用 Perl 做什么"。很大一部分 Perl 程序员都是编写网络程序 > 的,比如说来自 ticketmaster, bbc , valueclick 的与会者。还碰到了几个使用 > Perl 做 data mining 的朋友,都是做 生物 和 药业的。一起喝酒聊天时,了解 > 到了一个有趣的使用 Perl 的例子:这位朋友的公司是给酒店提供电视节目 付费 > 选台 软件服务的,向北美 4000 多家酒店提供服务。还有一个公司是给各大航空 > 公司提供网上定购机票服务的。 > > Perl 的使用其实很广泛,但很多时候都是不为人所知的。其实举手投足之间你就 > 可能用到了 Perl (至少在北美/欧洲是这样) :-) > > Qiang > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm -- 使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/ From haidongj at gmail.com Sat Jul 8 00:10:52 2006 From: haidongj at gmail.com (haidong jia) Date: Sat, 8 Jul 2006 15:10:52 +0800 Subject: [PerlChina] =?gb2312?b?vfHM7NPQutzA5MflsKGhoy0tLSBZQVBDILrcyMg=?= =?gb2312?b?xNYgOik=?= In-Reply-To: References: <74646cb40605222038p4e84b966j4989c18150831ea5@mail.gmail.com> <200605231345.14218.zhuzhu@perlchina.org> <067901c693b5$56585130$0801a8c0@james> <151e51480607052253h3026f272x41e00e79a6ff41b8@mail.gmail.com> <151e51480607052306h28f5dbb2qd73ec65f58244129@mail.gmail.com> <44ADEA77.8010901@gmail.com> Message-ID: 首先顶你一下。 在国外大家买的不是购买产品,而是购买服务。 在国内现在一部分消费群体还没有上升到这一认识。 2006/7/7, zhu zhu : > > 为什么在中国不行? 因为盗版…… 和知识产权…… > > 在 Fri, 07 Jul 2006 13:00:39 +0800,Qiang ( James ) Li > 写道: > > > haidong jia wrote: > >> 本人迷茫中... > >> > >> 在06-7-6,*Gao Aaron* >> > 写道: > >> > >> 呵呵 > >> perl真的很破 这事可能发生在写webcgi吧 > >> 据说过时了 现在据说流行php ror ajax > >> 俺一个都没有接触过 > >> 俺用perl每天的工作就是用perl 和shell > >> 写文本或者db到DBI数据库的转换过程--传说中的数据采集 faint > >> 在就是在已经有的perl应用系统上作些扩展 > >> 所以总是感觉学艺不精 > >> 觉得如果语言编程上无发展就转项目管理和业务分析吧 > >> 偶是做通讯行业地 > >> 大家给些建议和发展方向 > >> > > Perl 几乎无所不能, 你说的 数据采集(data mining) 就是其中一个。 > > 如果你想成为一个 Perl 黑客的话,那么常到 Perlmonks 和 其他邮件组上学习, > > 试着解决其他人的问题,从其他人的答案里学习。总之是需要兴趣,时间和个人的 > > 努力了。 > > > > 这次北美 YAPC 大会上我问了很多人一个问题 (oh, 这次大会大概有 400 多人参 > > 与),即 "工作中用 Perl 做什么"。很大一部分 Perl 程序员都是编写网络程序 > > 的,比如说来自 ticketmaster, bbc , valueclick 的与会者。还碰到了几个使用 > > Perl 做 data mining 的朋友,都是做 生物 和 药业的。一起喝酒聊天时,了解 > > 到了一个有趣的使用 Perl 的例子:这位朋友的公司是给酒店提供电视节目 付费 > > 选台 软件服务的,向北美 4000 多家酒店提供服务。还有一个公司是给各大航空 > > 公司提供网上定购机票服务的。 > > > > Perl 的使用其实很广泛,但很多时候都是不为人所知的。其实举手投足之间你就 > > 可能用到了 Perl (至少在北美/欧洲是这样) :-) > > > > Qiang > > > > _______________________________________________ > > China-pm mailing list > > China-pm at pm.org > > http://mail.pm.org/mailman/listinfo/china-pm > > > > -- > 使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/ > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/china-pm/attachments/20060708/8d9f92bc/attachment.html From jameswork66 at gmail.com Mon Jul 10 06:46:06 2006 From: jameswork66 at gmail.com (James Zheng) Date: Mon, 10 Jul 2006 21:46:06 +0800 Subject: [PerlChina] =?gb2312?b?vfHM7NPQutzA5MflsKGhoy0tLSBZQVBDILrcyMg=?= =?gb2312?b?xNYgOik=?= References: <74646cb40605222038p4e84b966j4989c18150831ea5@mail.gmail.com><200605231345.14218.zhuzhu@perlchina.org><067901c693b5$56585130$0801a8c0@james><151e51480607052253h3026f272x41e00e79a6ff41b8@mail.gmail.com><151e51480607052306h28f5dbb2qd73ec65f58244129@mail.gmail.com><44ADEA77.8010901@gmail.com> Message-ID: <031a01c6a427$3388a1f0$0801a8c0@james> 心态对了就好了, 不管你用什么语言能解决好实现问题就行了, 我天天用PERL, 做什么都喜欢先用PERL来解决. ----- Original Message ----- From: haidong jia To: china-pm at pm.org Sent: Saturday, July 08, 2006 3:10 PM Subject: Re: [PerlChina]今天有很冷清啊。--- YAPC 很热闹 :) 首先顶你一下。 在国外大家买的不是购买产品,而是购买服务。 在国内现在一部分消费群体还没有上升到这一认识。 2006/7/7, zhu zhu : 为什么在中国不行? 因为盗版…… 和知识产权…… 在 Fri, 07 Jul 2006 13:00:39 +0800,Qiang ( James ) Li 写道: > haidong jia wrote: >> 本人迷茫中... >> >> 在06-7-6,*Gao Aaron* > > 写道: >> >> 呵呵 >> perl真的很破 这事可能发生在写webcgi吧 >> 据说过时了 现在据说流行php ror ajax >> 俺一个都没有接触过 >> 俺用perl每天的工作就是用perl 和shell >> 写文本或者db到DBI数据库的转换过程--传说中的数据采集 faint >> 在就是在已经有的perl应用系统上作些扩展 >> 所以总是感觉学艺不精 >> 觉得如果语言编程上无发展就转项目管理和业务分析吧 >> 偶是做通讯行业地 >> 大家给些建议和发展方向 >> > Perl 几乎无所不能, 你说的 数据采集(data mining) 就是其中一个。 > 如果你想成为一个 Perl 黑客的话,那么常到 Perlmonks 和 其他邮件组上学习, > 试着解决其他人的问题,从其他人的答案里学习。总之是需要兴趣,时间和个人的 > 努力了。 > > 这次北美 YAPC 大会上我问了很多人一个问题 (oh, 这次大会大概有 400 多人参 > 与),即 "工作中用 Perl 做什么"。很大一部分 Perl 程序员都是编写网络程序 > 的,比如说来自 ticketmaster, bbc , valueclick 的与会者。还碰到了几个使用 > Perl 做 data mining 的朋友,都是做 生物 和 药业的。一起喝酒聊天时,了解 > 到了一个有趣的使用 Perl 的例子:这位朋友的公司是给酒店提供电视节目 付费 > 选台 软件服务的,向北美 4000 多家酒店提供服务。还有一个公司是给各大航空 > 公司提供网上定购机票服务的。 > > Perl 的使用其实很广泛,但很多时候都是不为人所知的。其实举手投足之间你就 > 可能用到了 Perl (至少在北美/欧洲是这样) :-) > > Qiang > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm -- 使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/ _______________________________________________ China-pm mailing list China-pm at pm.org http://mail.pm.org/mailman/listinfo/china-pm ------------------------------------------------------------------------------ _______________________________________________ China-pm mailing list China-pm at pm.org http://mail.pm.org/mailman/listinfo/china-pm -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/china-pm/attachments/20060710/5d717821/attachment.html From peng at dig-tech.com Mon Jul 10 07:06:55 2006 From: peng at dig-tech.com (Jeff Peng) Date: Mon, 10 Jul 2006 14:06:55 +0000 Subject: [PerlChina]к尡--- YAPC :) Message-ID: yes,I once wrote a perl socket server which accepted connections from hundreds of clients and returned the results to clients.It run well at most time even under high load. >From: James Zheng >Reply-To: china-pm at pm.org >To: >Subject: Re: [PerlChina]��к������--- YAPC ����:) >Date: Mon, 10 Jul 2006 21:46:06 +0800 > >�̬��˾ͺ�� �����ʲô��������������� ����PERL, >�ʲô��ϲ����PERL���. > > > ----- Original Message ----- > From: haidong jia > To: china-pm at pm.org > Sent: Saturday, July 08, 2006 3:10 PM > Subject: Re: [PerlChina]��к������--- YAPC ����:) > > > > �����һ��� > > ��������������������� > > ����һ��������û������һ�ʶ�� > > > > > 2006/7/7, zhu zhu : > Ϊʲô������ �Ϊ��桭�� ���ʶ���� > > � Fri, 07 Jul 2006 13:00:39 +0800��Qiang ( James ) Li > д�� > > > haidong jia wrote: > >> ����ã�... > >> > >> �06-7-6��*Gao Aaron* >> > д��� > >> > >> �Ǻ�> >> perl��ĺ������ܷ���дwebcgi��> >> ������������php ror ajax > >> ��һ�����Ӵ��� >> ���perlÿ��Ĺ������erl ��hell > >> д�����b��DBI��ݿ�ת�����˵����� faint > >> �����Ѿ����erlӦ�ϵͳ��Щ�չ > >> �����о�ղ��� > >> �����������չ����Ŀ���ҵ����> >> ż��ͨѶ�ҵ��> >> �����ͷ�չ��� > >> > > Perl �����, �˵����ݲɼ�(data mining) ����һ��> > ������һ��rl �ڿ͵Ļ����ô���� Perlmonks �� >�������ѧϰ�� > > >����������⣬�����Ĵ��ϰ���֮��Ҫ�Ȥ��ʱ�����> > Ŭ���� > > > > ��α�� YAPC �����˺ܶ�һ���oh, ��δ���400 >����> > �)���� "����� Perl �ʲô"���ܴ����Perl >������������ > �ģ������ ticketmaster, bbc , valueclick >�����������������> > Perl � data mining �������� �� �� >ҩҵ�ġ�һ��Ⱦ�������� > ���һ������� Perl �������Ĺ�˾����������� >����> > ѡ̨ �������ģ����� 4000 >���Ƶ�����������һ����������> > ��˾�������������ġ� > > > > Perl >�����ʵ�ܹ㷺�����ܶ���Dz�Ϊ��֪�ġ��ʵ�����֮����> > ���õ�� Perl (������/ŷ����) :-) > > > > Qiang > > > > _______________________________________________ > > China-pm mailing list > > China-pm at pm.org > > http://mail.pm.org/mailman/listinfo/china-pm > > > > -- > ʹ� Opera ����ĵ�����ͻ����ttp://www.opera.com/mail/ > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm > > > > >------------------------------------------------------------------------------ > > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm >_______________________________________________ >China-pm mailing list >China-pm at pm.org >http://mail.pm.org/mailman/listinfo/china-pm From haidongj at gmail.com Tue Jul 11 00:32:52 2006 From: haidongj at gmail.com (haidong jia) Date: Tue, 11 Jul 2006 15:32:52 +0800 Subject: [PerlChina] =?gb2312?b?tPO80rrDo6zQobXctdzO0sX2tb249s7KzOKjrMfr?= =?gb2312?b?tPO80rDvw6a4+L+0v7TRvQ==?= Message-ID: 功能:把文本中含有的部分全部替换为空 遇到问题:当字符串为开头并且以它结尾的时候把整个字符串都给替换了,现在求一正确的方法,多谢. 代码如下 sub strip_books { my $str = shift; my %allowed = allbooks; my $j = Jcode->new(\$str, 'utf-8'); $j->s("()", exists $allowed{$2} ? '' : $1); return $j->utf8; } -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/china-pm/attachments/20060711/de1b852a/attachment.html From eric1970 at gmail.com Tue Jul 11 01:27:34 2006 From: eric1970 at gmail.com (Du jian) Date: Tue, 11 Jul 2006 16:27:34 +0800 Subject: [PerlChina] China-pm Digest, Vol 14, Issue 21 In-Reply-To: References: Message-ID: <5fc3edf90607110127j11a3e4cbu8ba47a2d3d17e738@mail.gmail.com> 看到中文了,好亲切阿, 好多邮件中都是只看到一些小方块儿 On 6/26/06, china-pm-request at pm.org wrote: > 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: 嘿嘿,我最近在python邮件列表可出名了 > ( 黄叶 ) > 2. Re: 嘿嘿,我最近在python邮件列表可出名了 > (Toby Lee) > 3. Re: 嘿嘿,我最近在python邮件列表可出名了 > ( 张沈 鹏 (ZuRoc) ) > 4. Re: 嘿嘿,我最近在python邮件列表可出名了 > (Achilles Achilles) > 5. Word里Selection.MoveDown的使用 ( 万力 ) > 6. Re: Word里Selection.MoveDown的使用 (Achilles Achilles) > 7. Re: Word里Selection.MoveDown的使用 ( 万力 ) > 8. Re: Word里Selection.MoveDown的使用 ( 万力 ) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 26 Jun 2006 10:12:24 +0800 > From: " 黄叶 " > Subject: Re: [PerlChina] > 嘿嘿,我最近在python邮件列表可出名了 > To: china-pm at pm.org > Message-ID: > <74646cb40606251912oa15e908m4d26b71fb93533ee at mail.gmail.com> > Content-Type: text/plain; charset="gb2312" > > 是的,我的结论确实下得有点早。 > 收回我的结论。 > 楼上的批评的对。 > 谢谢。 > > 不管怎么样,此事对我来说是告一段落,结果是我退订和退出。 > 实在不行只好付诸法律了。 > > 无奈。 > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: http://mail.pm.org/pipermail/china-pm/attachments/20060626/5f767230/attachment-0001.html > > ------------------------------ > > Message: 2 > Date: Mon, 26 Jun 2006 11:00:49 +0800 > From: "Toby Lee" > Subject: Re: [PerlChina] > 嘿嘿,我最近在python邮件列表可出名了 > To: china-pm at pm.org > Message-ID: > > Content-Type: text/plain; charset=GB2312; format=flowed > > 就因为看到这个关于Python的帖子,我就专门跑了一次Python.cn,不过,犹豫了一下还是没有加入,怕类似的事发生呀。 > > On 6/26/06, 黄叶 wrote: > > 是的,我的结论确实下得有点早。 > > 收回我的结论。 > > 楼上的批评的对。 > > 谢谢。 > > > > 不管怎么样,此事对我来说是告一段落,结果是我退订和退出。 > > 实在不行只好付诸法律了。 > > > > 无奈。 > > > > > > > > _______________________________________________ > > China-pm mailing list > > China-pm at pm.org > > http://mail.pm.org/mailman/listinfo/china-pm > > > > ------------------------------ > > Message: 3 > Date: Mon, 26 Jun 2006 12:14:00 +0800 > From: " 张沈 鹏 (ZuRoc) " > Subject: Re: [PerlChina] > 嘿嘿,我最近在python邮件列表可出名了 > To: china-pm at pm.org > Message-ID: > <32b1bf740606252114l3f33c8bexe4e78e066f54e94f at mail.gmail.com> > Content-Type: text/plain; charset=UTF-8; format=flowed > > "结果成了中国自古以来的最有名的Toller。" > 这里的Toller的中文意思什么啊? > > 字典的解释是 > toller > 1. 鸣钟者;钟 > 2. 征收通行税 > > 不过好像在这儿说不通啊。。。。。。。。。。。。。。 > > 2006/6/26, Toby Lee : > > 就因为看到这个关于Python的帖子,我就专门跑了一次Python.cn,不过,犹豫了一下还是没有加入,怕类似的事发生呀。 > > > > On 6/26/06, 黄叶 wrote: > > > 是的,我的结论确实下得有点早。 > > > 收回我的结论。 > > > 楼上的批评的对。 > > > 谢谢。 > > > > > > 不管怎么样,此事对我来说是告一段落,结果是我退订和退出。 > > > 实在不行只好付诸法律了。 > > > > > > 无奈。 > > > > > > > > > > > > _______________________________________________ > > > China-pm mailing list > > > China-pm at pm.org > > > http://mail.pm.org/mailman/listinfo/china-pm > > > > > _______________________________________________ > > China-pm mailing list > > China-pm at pm.org > > http://mail.pm.org/mailman/listinfo/china-pm > > > -- > I am an earth-man. > > ------------------------------ > > Message: 4 > Date: Mon, 26 Jun 2006 12:36:51 +0800 > From: "Achilles Achilles" > Subject: Re: [PerlChina] > 嘿嘿,我最近在python邮件列表可出名了 > To: china-pm at pm.org > Message-ID: > <4a6c0ba80606252136q7749b5f6x9202ce7bf1e1e4bb at mail.gmail.com> > Content-Type: text/plain; charset="gb2312" > > 很多程序员都是只会一门语言,并且很狭隘,跟其他语言都跟有仇似的。 > > > -- > --------------------------- > Achilles Xu > http://www.lazycode.org > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: http://mail.pm.org/pipermail/china-pm/attachments/20060626/6e1e5d45/attachment-0001.html > > ------------------------------ > > Message: 5 > Date: Mon, 26 Jun 2006 12:40:59 +0800 > From: " 万力 " > Subject: [PerlChina] Word里Selection.MoveDown的使用 > To: china-pm > Message-ID: > <41143d8f0606252140p5695ad9br93991c8498dc7d5 at mail.gmail.com> > Content-Type: text/plain; charset="gb2312" > > Selection.MoveDown的Unit参数如果使用wdLine的话在VBA里没问题,但在Jscript里就通不过了,说是未定义。这个参数在Jscript里怎么设呢? > 谢谢! > > > -- > --==Best Regards From WanLi==-- > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: http://mail.pm.org/pipermail/china-pm/attachments/20060626/4cb77beb/attachment-0001.html > > ------------------------------ > > Message: 6 > Date: Mon, 26 Jun 2006 12:43:30 +0800 > From: "Achilles Achilles" > Subject: Re: [PerlChina] Word里Selection.MoveDown的使用 > To: china-pm at pm.org > Message-ID: > <4a6c0ba80606252143p6e880ee2t2d14e2089ac88c69 at mail.gmail.com> > Content-Type: text/plain; charset="gb2312" > > 这是个整数常量吧,你在vba里把它打出来看看是多少,在js里直接写整数就行。 > > On 6/26/06, 万力 wrote: > > > > Selection.MoveDown的Unit参数如果使用wdLine的话在VBA里没问题,但在Jscript里就通不过了,说是未定义。这个参数在Jscript里怎么设呢? > > 谢谢! > > > > > > -- > > --==Best Regards From WanLi==-- > > > > _______________________________________________ > > China-pm mailing list > > China-pm at pm.org > > http://mail.pm.org/mailman/listinfo/china-pm > > > > > > -- > --------------------------- > Achilles Xu > http://www.lazycode.org > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: http://mail.pm.org/pipermail/china-pm/attachments/20060626/6bd2bb6a/attachment-0001.html > > ------------------------------ > > Message: 7 > Date: Mon, 26 Jun 2006 12:46:03 +0800 > From: " 万力 " > Subject: Re: [PerlChina] Word里Selection.MoveDown的使用 > To: china-pm at pm.org > Message-ID: > <41143d8f0606252146i3168edcof2e3184a3eba2c89 at mail.gmail.com> > Content-Type: text/plain; charset="gb2312" > > 不是的wdLine是一个属性,声明换的是行,后面count声明的是行数。 > 但Jscript里wdline怎么写就不知道了 > > > On 6/26/06, Achilles Achilles wrote: > > > > 这是个整数常量吧,你在vba里把它打出来看看是多少,在js里直接写整数就行。 > > > > On 6/26/06, 万力 wrote: > > > > > Selection.MoveDown的Unit参数如果使用wdLine的话在VBA里没问题,但在Jscript里就通不过了,说是未定义。这个参数在Jscript里怎么设呢? > > 谢谢! > > > > > > -- > > --==Best Regards From WanLi==-- > > > > _______________________________________________ > > China-pm mailing list > > China-pm at pm.org > > http://mail.pm.org/mailman/listinfo/china-pm > > > > > > > > > > -- > > --------------------------- > > Achilles Xu > > http://www.lazycode.org > > > > _______________________________________________ > > China-pm mailing list > > China-pm at pm.org > > http://mail.pm.org/mailman/listinfo/china-pm > > > > > > -- > --==Best Regards From WanLi==-- > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: http://mail.pm.org/pipermail/china-pm/attachments/20060626/729a9767/attachment-0001.html > > ------------------------------ > > Message: 8 > Date: Mon, 26 Jun 2006 12:47:41 +0800 > From: " 万力 " > Subject: Re: [PerlChina] Word里Selection.MoveDown的使用 > To: china-pm at pm.org > Message-ID: > <41143d8f0606252147x7d9125a8t791515563d374145 at mail.gmail.com> > Content-Type: text/plain; charset="gb2312" > > 这是我录的 macro的一部分: > > Selection.MoveDown Unit:=wdLine, Count:=9 > > > On 6/26/06, 万力 wrote: > > > > 不是的wdLine是一个属性,声明换的是行,后面count声明的是行数。 > > 但Jscript里wdline怎么写就不知道了 > > > > > > On 6/26/06, Achilles Achilles wrote: > > > > > > 这是个整数常量吧,你在vba里把它打出来看看是多少,在js里直接写整数就行。 > > > > > > On 6/26/06, 万力 < wanliyou at gmail.com> wrote: > > > > > > > Selection.MoveDown的Unit参数如果使用wdLine的话在VBA里没问题,但在Jscript里就通不过了,说是未定义。这个参数在Jscript里怎么设呢? > > > 谢谢! > > > > > > > > > -- > > > --==Best Regards From WanLi==-- > > > > > > _______________________________________________ > > > China-pm mailing list > > > China-pm at pm.org > > > http://mail.pm.org/mailman/listinfo/china-pm > > > > > > > > > > > > > > > -- > > > --------------------------- > > > Achilles Xu > > > http://www.lazycode.org > > > > > > _______________________________________________ > > > China-pm mailing list > > > China-pm at pm.org > > > http://mail.pm.org/mailman/listinfo/china-pm > > > > > > > > > > > -- > > --==Best Regards From WanLi==-- > > > > > > -- > --==Best Regards From WanLi==-- > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: http://mail.pm.org/pipermail/china-pm/attachments/20060626/0bda7a63/attachment.html > > ------------------------------ > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm > > End of China-pm Digest, Vol 14, Issue 21 > **************************************** > From panjianfeng1979 at gmail.com Tue Jul 11 01:38:35 2006 From: panjianfeng1979 at gmail.com (=?GB2312?B?xcu9qLfm?=) Date: Tue, 11 Jul 2006 16:38:35 +0800 Subject: [PerlChina] =?gb2312?b?tPO80rrDo6zQobXctdzO0sX2tb249s7KzOKjrMfr?= =?gb2312?b?tPO80rDvw6a4+L+0v7TRvQ==?= In-Reply-To: References: Message-ID: <4bb3b0bc0607110138p11fd2e6dn494cc9a8ebd12183@mail.gmail.com> "()"改成 "(]+)>", 应该就可以了 在06-7-11,haidong jia 写道: > > 功能:把文本中含有的部分全部替换为空 > 遇到问题:当字符串为开头并且以它结尾的时候把整个字符串都给替换了,现在求一正确的方法,多谢. > 代码如下 > sub strip_books { > my $str = shift; > my %allowed = allbooks; > > my $j = Jcode->new(\$str, 'utf-8'); > > $j->s("()", exists $allowed{$2} ? '' : $1); > > return $j->utf8; > } > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/china-pm/attachments/20060711/2dcecd00/attachment.html From uliyas at gmail.com Tue Jul 11 19:58:05 2006 From: uliyas at gmail.com (Uliyas Fan) Date: Wed, 12 Jul 2006 10:58:05 +0800 Subject: [PerlChina] =?utf-8?b?5YWz5LqO5aaC5L2V5oqK5paH5pys5paH5Lu26L2s?= =?utf-8?b?5YyW5Li6VW5pY29kZeeahOmXrumimA==?= Message-ID: 我需要从一个Unicode编码的文本文件中读出几行,然后再写成用unicode编码的另一个文件,该怎么做啊,我写完的程序总是不符合unicode的格式标准。那位大侠能给个提示啊。 另外,为什么我用Gmail收到的邮件大部分都显示乱码呢? -- 樊闻斌 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/china-pm/attachments/20060712/cb4c3fc7/attachment.html From haidongj at gmail.com Tue Jul 11 20:21:30 2006 From: haidongj at gmail.com (haidong jia) Date: Wed, 12 Jul 2006 11:21:30 +0800 Subject: [PerlChina] =?gb2312?b?tPO80rrDo6zQobXctdzO0sX2tb249s7KzOKjrMfr?= =?gb2312?b?tPO80rDvw6a4+L+0v7TRvQ==?= In-Reply-To: <4bb3b0bc0607110138p11fd2e6dn494cc9a8ebd12183@mail.gmail.com> References: <4bb3b0bc0607110138p11fd2e6dn494cc9a8ebd12183@mail.gmail.com> Message-ID: 试了一下,这个不成啊。 在06-7-11,潘建锋 写道: > > "()"改成 "(]+)>", 应该就可以了 > > 在06-7-11,haidong jia 写道: > > > > 功能:把文本中含有的部分全部替换为空 > 遇到问题:当字符串为开头并且以它结尾的时候把整个字符串都给替换了,现在求一正确的方法,多谢. > 代码如下 > sub strip_books { > my $str = shift; > my %allowed = allbooks; > > my $j = Jcode->new(\$str, 'utf-8'); > > $j->s("()", exists $allowed{$2} ? '' : $1); > > return $j->utf8; > } > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm > > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/china-pm/attachments/20060712/09b6aecc/attachment.html From panjianfeng1979 at gmail.com Tue Jul 11 20:33:09 2006 From: panjianfeng1979 at gmail.com (=?GB2312?B?xcu9qLfm?=) Date: Wed, 12 Jul 2006 11:33:09 +0800 Subject: [PerlChina] =?gb2312?b?tPO80rrDo6zQobXctdzO0sX2tb249s7KzOKjrMfr?= =?gb2312?b?tPO80rDvw6a4+L+0v7TRvQ==?= In-Reply-To: References: <4bb3b0bc0607110138p11fd2e6dn494cc9a8ebd12183@mail.gmail.com> Message-ID: <4bb3b0bc0607112033g376bafa3q6a46f01dcbeaa93a@mail.gmail.com> (.+)改为[^>]+不行吗? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/china-pm/attachments/20060712/db5289a4/attachment.html From haidongj at gmail.com Tue Jul 11 20:50:16 2006 From: haidongj at gmail.com (haidong jia) Date: Wed, 12 Jul 2006 11:50:16 +0800 Subject: [PerlChina] =?gb2312?b?tPO80rrDo6zQobXctdzO0sX2tb249s7KzOKjrMfr?= =?gb2312?b?tPO80rDvw6a4+L+0v7TRvQ==?= In-Reply-To: <4bb3b0bc0607112033g376bafa3q6a46f01dcbeaa93a@mail.gmail.com> References: <4bb3b0bc0607110138p11fd2e6dn494cc9a8ebd12183@mail.gmail.com> <4bb3b0bc0607112033g376bafa3q6a46f01dcbeaa93a@mail.gmail.com> Message-ID: 不成,没有替换 在06-7-12,潘建锋 写道: > > (.+)改为[^>]+不行吗? > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/china-pm/attachments/20060712/1f5390d3/attachment.html From haidongj at gmail.com Tue Jul 11 21:05:47 2006 From: haidongj at gmail.com (haidong jia) Date: Wed, 12 Jul 2006 12:05:47 +0800 Subject: [PerlChina] =?gb2312?b?tPO80rrDo6zQobXctdzO0sX2tb249s7KzOKjrMfr?= =?gb2312?b?tPO80rDvw6a4+L+0v7TRvQ==?= In-Reply-To: References: <4bb3b0bc0607110138p11fd2e6dn494cc9a8ebd12183@mail.gmail.com> <4bb3b0bc0607112033g376bafa3q6a46f01dcbeaa93a@mail.gmail.com> Message-ID: ([^>]+)>) 只是把第一次给替换了,第二次的就不被替换了,帮帮我 在06-7-12,haidong jia 写道: > > 不成,没有替换 > > 在06-7-12,潘建锋 写道: > > > > (.+)改为[^>]+不行吗? > > > > _______________________________________________ > > > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/china-pm/attachments/20060712/d7cb5b9c/attachment.html From haidongj at gmail.com Tue Jul 11 22:21:37 2006 From: haidongj at gmail.com (haidong jia) Date: Wed, 12 Jul 2006 13:21:37 +0800 Subject: [PerlChina] =?gb2312?b?tPO80rrDo6zQobXctdzO0sX2tb249s7KzOKjrMfr?= =?gb2312?b?tPO80rDvw6a4+L+0v7TRvQ==?= In-Reply-To: References: <4bb3b0bc0607110138p11fd2e6dn494cc9a8ebd12183@mail.gmail.com> <4bb3b0bc0607112033g376bafa3q6a46f01dcbeaa93a@mail.gmail.com> Message-ID: 已经搞定,我在后面加上了'isg' 在06-7-12,haidong jia 写道: > > ([^>]+)>) 只是把第一次给替换了,第二次的就不被替换了,帮帮我 > > 在06-7-12,haidong jia 写道: > > > 不成,没有替换 > > > > 在06-7-12,潘建锋 写道: > > > > > > (.+)改为[^>]+不行吗? > > > > > > _______________________________________________ > > > > > > China-pm mailing list > > China-pm at pm.org > > http://mail.pm.org/mailman/listinfo/china-pm > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/china-pm/attachments/20060712/1b1d02ac/attachment.html From panjianfeng1979 at gmail.com Thu Jul 13 23:49:35 2006 From: panjianfeng1979 at gmail.com (=?GB2312?B?xcu9qLfm?=) Date: Fri, 14 Jul 2006 14:49:35 +0800 Subject: [PerlChina] =?gb2312?b?x+u9zNK7uPa2wc7EvP61xM7KzOI=?= Message-ID: <4bb3b0bc0607132349n298528c3t1e9864a979893b02@mail.gmail.com> 我现在有个文件类似 struct C { a=..; b=..; c=..; d=..; } struct C { a=..; b=..; c=..; d=.. } ... 我要读出每个结构的a和c值 我用了 my $condition=0; while() { if (/a=(.+)/) { $arr[0] = $1; condition = 1; } elsif(condition == 1 && /c=(.+)/) { $arr[1] = $1 condition = 0; # 往数据库插入@arr } } 这样只能得到第一个struct的数据,然后提示 Use of uninitialized value in pattern match (m//) at ... -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/china-pm/attachments/20060714/56a4e203/attachment.html From islue.hu at gmail.com Fri Jul 14 02:29:04 2006 From: islue.hu at gmail.com (islue) Date: Fri, 14 Jul 2006 18:29:04 +0900 Subject: [PerlChina] =?gb2312?b?x+u9zNK7uPa2wc7EvP61xM7KzOI=?= In-Reply-To: <4bb3b0bc0607132349n298528c3t1e9864a979893b02@mail.gmail.com> References: <4bb3b0bc0607132349n298528c3t1e9864a979893b02@mail.gmail.com> Message-ID: while () { next unless $_; } 从你的描述看,加这么一行应该ok了 在06-7-14,潘建锋 写道: > > 我现在有个文件类似 > struct C { > a=..; > b=..; > c=..; > d=..; > } > struct C { > a=..; > b=..; > c=..; > d=.. > } > ... > 我要读出每个结构的a和c值 > 我用了 > my $condition=0; > while() { > if (/a=(.+)/) { > $arr[0] = $1; > condition = 1; > } elsif(condition == 1 && /c=(.+)/) { > $arr[1] = $1 > condition = 0; > # 往数据库插入@arr > } > } > 这样只能得到第一个struct的数据,然后提示 > Use of uninitialized value in pattern match (m//) at ... > > > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/china-pm/attachments/20060714/b3a439f1/attachment.html From panjianfeng1979 at gmail.com Fri Jul 14 02:31:32 2006 From: panjianfeng1979 at gmail.com (=?GB2312?B?xcu9qLfm?=) Date: Fri, 14 Jul 2006 17:31:32 +0800 Subject: [PerlChina] =?gb2312?b?x+u9zNK7uPa2wc7EvP61xM7KzOI=?= In-Reply-To: References: <4bb3b0bc0607132349n298528c3t1e9864a979893b02@mail.gmail.com> Message-ID: <4bb3b0bc0607140231xc6c2513i230369553ea7081d@mail.gmail.com> 已经解决了谢谢,是一个低级错误 \w+写成w+ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/china-pm/attachments/20060714/9ca66f0c/attachment.html From kangxiong at gmail.com Fri Jul 14 09:22:15 2006 From: kangxiong at gmail.com (king sir) Date: Sat, 15 Jul 2006 00:22:15 +0800 Subject: [PerlChina] =?gb2312?b?x+u9zNK7uPa2wc7EvP61xM7KzOI=?= In-Reply-To: References: <4bb3b0bc0607132349n298528c3t1e9864a979893b02@mail.gmail.com> Message-ID: 潘建锋是icesword的潘建锋吗? 在06-7-14,islue 写道: > > while () { > next unless $_; > } > 从你的描述看,加这么一行应该ok了 > > 在06-7-14,潘建锋 写道: > > > > 我现在有个文件类似 > > struct C { > > a=..; > > b=..; > > c=..; > > d=..; > > } > > struct C { > > a=..; > > b=..; > > c=..; > > d=.. > > } > > ... > > 我要读出每个结构的a和c值 > > 我用了 > > my $condition=0; > > while() { > > if (/a=(.+)/) { > > $arr[0] = $1; > > condition = 1; > > } elsif(condition == 1 && /c=(.+)/) { > > $arr[1] = $1 > > condition = 0; > > # 往数据库插入@arr > > } > > } > > 这样只能得到第一个struct的数据,然后提示 > > Use of uninitialized value in pattern match (m//) at ... > > > > > > > > _______________________________________________ > > China-pm mailing list > > China-pm at pm.org > > http://mail.pm.org/mailman/listinfo/china-pm > > > > > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/china-pm/attachments/20060715/f6fe573f/attachment.html From panjianfeng1979 at gmail.com Fri Jul 14 21:55:06 2006 From: panjianfeng1979 at gmail.com (=?GB2312?B?xcu9qLfm?=) Date: Sat, 15 Jul 2006 12:55:06 +0800 Subject: [PerlChina] =?gb2312?b?x+u9zNK7uPa2wc7EvP61xM7KzOI=?= In-Reply-To: References: <4bb3b0bc0607132349n298528c3t1e9864a979893b02@mail.gmail.com> Message-ID: <4bb3b0bc0607142155m29464e42kefb51058ddf0e5d1@mail.gmail.com> 虽然我最近打算学ICE――和你说的icesword好像没有什么关系,但应该不是你说的那个潘建锋:-) 在06-7-15,king sir 写道: > > 潘建锋是icesword的潘建锋吗? > > 在06-7-14,islue 写道: > > > while () { > > next unless $_; > > } > > 从你的描述看,加这么一行应该ok了 > > > > 在06-7-14,潘建锋 写道: > > > > > > 我现在有个文件类似 > > > struct C { > > > a=..; > > > b=..; > > > c=..; > > > d=..; > > > } > > > struct C { > > > a=..; > > > b=..; > > > c=..; > > > d=.. > > > } > > > ... > > > 我要读出每个结构的a和c值 > > > 我用了 > > > my $condition=0; > > > while() { > > > if (/a=(.+)/) { > > > $arr[0] = $1; > > > condition = 1; > > > } elsif(condition == 1 && /c=(.+)/) { > > > $arr[1] = $1 > > > condition = 0; > > > # 往数据库插入@arr > > > } > > > } > > > 这样只能得到第一个struct的数据,然后提示 > > > Use of uninitialized value in pattern match (m//) at ... > > > > > > > > > > > > _______________________________________________ > > > China-pm mailing list > > > China-pm at pm.org > > > http://mail.pm.org/mailman/listinfo/china-pm > > > > > > > > > > > _______________________________________________ > > China-pm mailing list > > China-pm at pm.org > > http://mail.pm.org/mailman/listinfo/china-pm > > > > > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/china-pm/attachments/20060715/851e26a3/attachment.html From xiang.li at net263.com Sat Jul 15 07:50:51 2006 From: xiang.li at net263.com (lixiang@net263.com) Date: Sat, 15 Jul 2006 22:50:51 +0800 Subject: [PerlChina] =?gb2312?b?tPC4tDogIMfrvczSu7j2tsHOxLz+tcTOyszi?= In-Reply-To: <4bb3b0bc0607142155m29464e42kefb51058ddf0e5d1@mail.gmail.com> Message-ID: <20060715145052.42E1F408D5@smtp.263xmail.com> Icesword是个工具,可以查看很多系统信息,对于检查木马和间谍软件非常有效。 _____ 发件人: china-pm-bounces+xiang.li=net263.com at pm.org [mailto:china-pm-bounces+xiang.li=net263.com at pm.org] 代表 潘建锋 发送时间: 2006年7月15日 12:55 收件人: china-pm at pm.org 主题: Re: [PerlChina] 请教一个读文件的问题 虽然我最近打算学ICE――和你说的icesword好像没有什么关系,但应该不是你说的那 个潘建锋:-) 在06-7-15,king sir 写道: 潘建锋是icesword的潘建锋吗? 在06-7-14,islue 写道: while () { next unless $_; } 从你的描述看,加这么一行应该ok了 在06-7-14,潘建锋 写道: 我现在有个文件类似 struct C { a=..; b=..; c=..; d=..; } struct C { a=..; b=..; c=..; d=.. } ... 我要读出每个结构的a和c值 我用了 my $condition=0; while() { if (/a=(.+)/) { $arr[0] = $1; condition = 1; } elsif(condition == 1 && /c=(.+)/) { $arr[1] = $1 condition = 0; # 往数据库插入@arr } } 这样只能得到第一个struct的数据,然后提示 Use of uninitialized value in pattern match (m//) at ... _______________________________________________ China-pm mailing list China-pm at pm.org http://mail.pm.org/mailman/listinfo/china-pm _______________________________________________ China-pm mailing list China-pm at pm.org http://mail.pm.org/mailman/listinfo/china-pm _______________________________________________ China-pm mailing list China-pm at pm.org http://mail.pm.org/mailman/listinfo/china-pm -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/china-pm/attachments/20060715/4dc3512f/attachment.html From zhuzhu at perlchina.org Sat Jul 15 08:23:58 2006 From: zhuzhu at perlchina.org (zhuzhu) Date: Sat, 15 Jul 2006 15:23:58 -0000 Subject: [PerlChina] =?utf-8?q?=28no_subject=29?= Message-ID: 是Win 还是 Linux? -- 使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/ From fujucso at gmail.com Sun Jul 16 07:01:21 2006 From: fujucso at gmail.com (Huan Wang) Date: Sun, 16 Jul 2006 22:01:21 +0800 Subject: [PerlChina] =?gb2312?b?x+u9zNK7uPa2wc7EvP61xM7KzOI=?= In-Reply-To: <4bb3b0bc0607142155m29464e42kefb51058ddf0e5d1@mail.gmail.com> References: <4bb3b0bc0607132349n298528c3t1e9864a979893b02@mail.gmail.com> <4bb3b0bc0607142155m29464e42kefb51058ddf0e5d1@mail.gmail.com> Message-ID: 呵呵,icesword的作者,科大的牛人啊。 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/china-pm/attachments/20060716/8b469bbe/attachment.html From cnhacktnt at gmail.com Sun Jul 16 19:22:49 2006 From: cnhacktnt at gmail.com (cnhack TNT) Date: Mon, 17 Jul 2006 10:22:49 +0800 Subject: [PerlChina] =?gb2312?b?udjT2sjnus6w0c7Esb7OxLz+16q7r86qVW5pY29k?= =?gb2312?b?ZbXEzsrM4g==?= In-Reply-To: References: Message-ID: 读写的时候 binmode 一下文件句柄吧:-) On 7/12/06, Uliyas Fan wrote: > > > 我需要从一个Unicode编码的文本文件中读出几行,然后再写成用unicode编码的另一个文件,该怎么做啊,我写完的程序总是不符合unicode的格式标准。那位大侠能给个提示啊。 > > 另外,为什么我用Gmail收到的邮件大部分都显示乱码呢? > > -- > 樊闻斌 > > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/china-pm/attachments/20060717/ae24fbd2/attachment.html From panjianfeng1979 at gmail.com Mon Jul 17 09:03:40 2006 From: panjianfeng1979 at gmail.com (=?GB2312?B?xcu9qLfm?=) Date: Tue, 18 Jul 2006 00:03:40 +0800 Subject: [PerlChina] =?gb2312?b?x+u9zNK7uPa2wc7EvP61xM7KzOI=?= In-Reply-To: References: <4bb3b0bc0607132349n298528c3t1e9864a979893b02@mail.gmail.com> <4bb3b0bc0607142155m29464e42kefb51058ddf0e5d1@mail.gmail.com> Message-ID: <4bb3b0bc0607170903o42ff82b8rc49f74b74a5b3da6@mail.gmail.com> 呵呵,不错,不错,还是我本家。 在06-7-16,Huan Wang 写道: > > 呵呵,icesword的作者,科大的牛人啊。 > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/china-pm/attachments/20060718/e333300e/attachment.html From panjianfeng1979 at gmail.com Tue Jul 18 00:45:22 2006 From: panjianfeng1979 at gmail.com (=?GB2312?B?xcu9qLfm?=) Date: Tue, 18 Jul 2006 15:45:22 +0800 Subject: [PerlChina] =?gb2312?b?x+u9zNK7uPawstewxKO/6bXEzsrM4g==?= Message-ID: <4bb3b0bc0607180045q1d817d59pcee9c69910182fb2@mail.gmail.com> 刚学Perl,对Perl安装新的模块一窍不通。来这里向各位学习学习。 比如我要安装Mason,首先我可以用ppm,然后s mason install HTML-Mason 来安装,也可以下载Mason之后,来安装 一般来说,下载之后安装是不是随便解压到一个目录下,运行 make Makefile.pl make make install 就可以了? From fayland at gmail.com Tue Jul 18 00:48:52 2006 From: fayland at gmail.com (fayland) Date: Tue, 18 Jul 2006 07:48:52 +0000 Subject: [PerlChina] =?utf-8?b?6K+35pWZ5LiA5Liq5a6J6KOF5qih5Z2X55qE6Zeu?= =?utf-8?b?6aKY?= In-Reply-To: <4bb3b0bc0607180045q1d817d59pcee9c69910182fb2@mail.gmail.com> References: <4bb3b0bc0607180045q1d817d59pcee9c69910182fb2@mail.gmail.com> Message-ID: <44BC9264.4030200@gmail.com> 潘建锋 wrote: > 刚学Perl,对Perl安装新的模块一窍不通。来这里向各位学习学习。 > > 比如我要安装Mason,首先我可以用ppm,然后s mason > install HTML-Mason > 来安装,也可以下载Mason之后,来安装 > 一般来说,下载之后安装是不是随便解压到一个目录下,运行 > make Makefile.pl > make > make install > perl Makefile.PL nmake nmake test nmake install Win32 下是用 nmake 或 dmake 之类的。 > 就可以了? > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm -- Fayland Lam // http://www.fayland.org/ From tting.wang at gmail.com Tue Jul 18 01:00:50 2006 From: tting.wang at gmail.com (tting.wang) Date: Tue, 18 Jul 2006 10:00:50 +0200 Subject: [PerlChina] =?utf-8?b?6K+35pWZ5LiA5Liq5a6J6KOF5qih5Z2X55qE6Zeu?= =?utf-8?b?6aKY?= In-Reply-To: <4bb3b0bc0607180045q1d817d59pcee9c69910182fb2@mail.gmail.com> References: <4bb3b0bc0607180045q1d817d59pcee9c69910182fb2@mail.gmail.com> Message-ID: <44BC9532.50803@gmail.com> 潘建锋 写道: > 刚学Perl,对Perl安装新的模块一窍不通。来这里向各位学习学习。 > > 偶用cpan比较多,不过无所谓啦,能装好就好。ubuntu(debian)可以用apt-get install ... 感觉更简单,就是不是很全。 > 比如我要安装Mason,首先我可以用ppm,然后s mason > install HTML-Mason > 来安装,也可以下载Mason之后,来安装 > 一般来说,下载之后安装是不是随便解压到一个目录下,运行 > make Makefile.pl > 是 perl Makefile.pl 吧,这个会生成一个Makefile > make > make install > 就可以了? > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm From panjianfeng1979 at gmail.com Tue Jul 18 04:12:28 2006 From: panjianfeng1979 at gmail.com (=?GB2312?B?xcu9qLfm?=) Date: Tue, 18 Jul 2006 19:12:28 +0800 Subject: [PerlChina] =?gb2312?b?x+u9zNK7uPawstewxKO/6bXEzsrM4g==?= In-Reply-To: <44BC9532.50803@gmail.com> References: <4bb3b0bc0607180045q1d817d59pcee9c69910182fb2@mail.gmail.com> <44BC9532.50803@gmail.com> Message-ID: <4bb3b0bc0607180412r4aa98b15g367e543c606fc45a@mail.gmail.com> >是 perl Makefile.pl 吧,这个会生成一个Makefile 是的,写错了, 另外,我是在Windows下用的Perl。 2006/7/18, tting.wang : > 潘建锋 写道: > > 刚学Perl,对Perl安装新的模块一窍不通。来这里向各位学习学习。 > > > > > 偶用cpan比较多,不过无所谓啦,能装好就好。ubuntu(debian)可以用apt-get > install ... 感觉更简单,就是不是很全。 > > 比如我要安装Mason,首先我可以用ppm,然后s mason > > install HTML-Mason > > 来安装,也可以下载Mason之后,来安装 > > 一般来说,下载之后安装是不是随便解压到一个目录下,运行 > > make Makefile.pl > > > 是 perl Makefile.pl 吧,这个会生成一个Makefile > > make > > make install > > 就可以了? > > _______________________________________________ > > China-pm mailing list > > China-pm at pm.org > > http://mail.pm.org/mailman/listinfo/china-pm > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm From xinyu.zeng at gmail.com Tue Jul 18 05:29:53 2006 From: xinyu.zeng at gmail.com (xinyu zeng) Date: Tue, 18 Jul 2006 20:29:53 +0800 Subject: [PerlChina] =?gb2312?b?x+u9zNK7uPawstewxKO/6bXEzsrM4g==?= In-Reply-To: <4bb3b0bc0607180412r4aa98b15g367e543c606fc45a@mail.gmail.com> References: <4bb3b0bc0607180045q1d817d59pcee9c69910182fb2@mail.gmail.com> <44BC9532.50803@gmail.com> <4bb3b0bc0607180412r4aa98b15g367e543c606fc45a@mail.gmail.com> Message-ID: <6fc27a2a0607180529x3f40eb6ehf609f5c5f7f57c13@mail.gmail.com> PPM下面install之后就可以了吧? 我也是新手的 On 7/18/06, 潘建锋 wrote: > >是 perl Makefile.pl 吧,这个会生成一个Makefile > 是的,写错了, > 另外,我是在Windows下用的Perl。 > > 2006/7/18, tting.wang : > > 潘建锋 写道: > > > 刚学Perl,对Perl安装新的模块一窍不通。来这里向各位学习学习。 > > > > > > > > 偶用cpan比较多,不过无所谓啦,能装好就好。ubuntu(debian)可以用apt-get > > install ... 感觉更简单,就是不是很全。 > > > 比如我要安装Mason,首先我可以用ppm,然后s mason > > > install HTML-Mason > > > 来安装,也可以下载Mason之后,来安装 > > > 一般来说,下载之后安装是不是随便解压到一个目录下,运行 > > > make Makefile.pl > > > > > 是 perl Makefile.pl 吧,这个会生成一个Makefile > > > make > > > make install > > > 就可以了? > > > _______________________________________________ > > > China-pm mailing list > > > China-pm at pm.org > > > http://mail.pm.org/mailman/listinfo/china-pm > > > > _______________________________________________ > > China-pm mailing list > > China-pm at pm.org > > http://mail.pm.org/mailman/listinfo/china-pm > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm -- Best Regards, Yours Xinyu.Zeng From tting.wang at gmail.com Tue Jul 18 08:58:25 2006 From: tting.wang at gmail.com (tting.wang) Date: Tue, 18 Jul 2006 17:58:25 +0200 Subject: [PerlChina] =?utf-8?b?6K+35pWZ5LiA5Liq5a6J6KOF5qih5Z2X55qE6Zeu?= =?utf-8?b?6aKY?= In-Reply-To: <6fc27a2a0607180529x3f40eb6ehf609f5c5f7f57c13@mail.gmail.com> References: <4bb3b0bc0607180045q1d817d59pcee9c69910182fb2@mail.gmail.com> <44BC9532.50803@gmail.com> <4bb3b0bc0607180412r4aa98b15g367e543c606fc45a@mail.gmail.com> <6fc27a2a0607180529x3f40eb6ehf609f5c5f7f57c13@mail.gmail.com> Message-ID: <44BD0521.9000805@gmail.com> xinyu zeng 写道: > PPM下面install之后就可以了吧? > > 如果有ppm有你要的模块的话,就可以了。但是ppm的包不是很全,Tk好象就没有。 > 我也是新手的 > > On 7/18/06, 潘建锋 wrote: > >>> 是 perl Makefile.pl 吧,这个会生成一个Makefile >>> >> 是的,写错了, >> 另外,我是在Windows下用的Perl。 >> >> 2006/7/18, tting.wang : >> >>> 潘建锋 写道: >>> >>>> 刚学Perl,对Perl安装新的模块一窍不通。来这里向各位学习学习。 >>>> >>>> >>>> >>> 偶用cpan比较多,不过无所谓啦,能装好就好。ubuntu(debian)可以用apt-get >>> install ... 感觉更简单,就是不是很全。 >>> >>>> 比如我要安装Mason,首先我可以用ppm,然后s mason >>>> install HTML-Mason >>>> 来安装,也可以下载Mason之后,来安装 >>>> 一般来说,下载之后安装是不是随便解压到一个目录下,运行 >>>> make Makefile.pl >>>> >>>> >>> 是 perl Makefile.pl 吧,这个会生成一个Makefile >>> >>>> make >>>> make install >>>> 就可以了? >>>> _______________________________________________ >>>> China-pm mailing list >>>> China-pm at pm.org >>>> http://mail.pm.org/mailman/listinfo/china-pm >>>> >>> _______________________________________________ >>> China-pm mailing list >>> China-pm at pm.org >>> http://mail.pm.org/mailman/listinfo/china-pm >>> >> _______________________________________________ >> China-pm mailing list >> China-pm at pm.org >> http://mail.pm.org/mailman/listinfo/china-pm >> > > > From ywomol at gmail.com Fri Jul 21 01:34:03 2006 From: ywomol at gmail.com (YW) Date: Fri, 21 Jul 2006 16:34:03 +0800 Subject: [PerlChina] =?gb2312?b?x+u9zNK7uPawstewxKO/6bXEzsrM4g==?= In-Reply-To: <44BD0521.9000805@gmail.com> References: <4bb3b0bc0607180045q1d817d59pcee9c69910182fb2@mail.gmail.com> <44BC9532.50803@gmail.com> <4bb3b0bc0607180412r4aa98b15g367e543c606fc45a@mail.gmail.com> <6fc27a2a0607180529x3f40eb6ehf609f5c5f7f57c13@mail.gmail.com> <44BD0521.9000805@gmail.com> Message-ID: 加几个站点吧: ppm> rep add theoryx5 http://theoryx5.uwinnipeg.ca/ppms ppm> rep add tribes http://www.bribes.org/perl/ppm On 7/18/06, tting.wang wrote: > xinyu zeng 写道: > > PPM下面install之后就可以了吧? > > > > > 如果有ppm有你要的模块的话,就可以了。但是ppm的包不是很全,Tk好象就没有。 > > > 我也是新手的 > > > > On 7/18/06, 潘建锋 wrote: > > > >>> 是 perl Makefile.pl 吧,这个会生成一个Makefile > >>> > >> 是的,写错了, > >> 另外,我是在Windows下用的Perl。 > >> > >> 2006/7/18, tting.wang : > >> > >>> 潘建锋 写道: > >>> > >>>> 刚学Perl,对Perl安装新的模块一窍不通。来这里向各位学习学习。 > >>>> > >>>> > >>>> > >>> 偶用cpan比较多,不过无所谓啦,能装好就好。ubuntu(debian)可以用apt-get > >>> install ... 感觉更简单,就是不是很全。 > >>> > >>>> 比如我要安装Mason,首先我可以用ppm,然后s mason > >>>> install HTML-Mason > >>>> 来安装,也可以下载Mason之后,来安装 > >>>> 一般来说,下载之后安装是不是随便解压到一个目录下,运行 > >>>> make Makefile.pl > >>>> > >>>> > >>> 是 perl Makefile.pl 吧,这个会生成一个Makefile > >>> > >>>> make > >>>> make install > >>>> 就可以了? > >>>> _______________________________________________ > >>>> China-pm mailing list > >>>> China-pm at pm.org > >>>> http://mail.pm.org/mailman/listinfo/china-pm > >>>> > >>> _______________________________________________ > >>> China-pm mailing list > >>> China-pm at pm.org > >>> http://mail.pm.org/mailman/listinfo/china-pm > >>> > >> _______________________________________________ > >> China-pm mailing list > >> China-pm at pm.org > >> http://mail.pm.org/mailman/listinfo/china-pm > >> > > > > > > > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm