From march.liu at gmail.com Fri Feb 1 03:53:18 2008 From: march.liu at gmail.com (=?GB2312?B?wfX2zg==?=) Date: Fri, 1 Feb 2008 19:53:18 +0800 Subject: [PerlChina] =?gb2312?b?Y3BlcmwtbW9kZc7KzOI=?= Message-ID: 前几天刚刚开始学习perl,安装了cperl-mode。 从网上搜索来的信息来看,很多人有提cperl-mode会与perl-mode有一些冲突。不知道是不是因为这个引起的,我确实遇到了一些问题: 1、手工启动cperl-mode,基本上都会提示出错。 2、在windows上,将cperl-mode绑定到文件类型上,自动启动,可以启动。 3、在ubuntu 7.10 emacs-snapshot(emacs 22)上,任何启动方式都出错。 4、我下载了emacs 23的最新cvs,自己编译了一个,还是同样的错误。 错误信息如下: Loading `cperl-mode': old-style backquotes detected! File mode specification error: (void-function compilation-build-compilation-error-regexp-alist) 后来实在没办法,我就从cperl-mode中找出跟这个错误有关的代码(3317到3328行)注释掉了。很奇怪,按代码中的注释说明,这段代码应该是针对xemacs的。 不知道这个问题有没有什么更好的办法来解决?难不成所有在linux上用emacs+cperl-mode的程序员都要手工干掉这段代码? -- 人海之中,他的离去让我更加孤独。 …… 刘鑫 March.Liu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/china-pm/attachments/20080201/d16629f5/attachment.html From bruce1914 at gmail.com Tue Feb 12 06:48:55 2008 From: bruce1914 at gmail.com (Bruce Cheng) Date: Tue, 12 Feb 2008 22:48:55 +0800 Subject: [PerlChina] send mail in windows VISTA Message-ID: <000001c86d86$69149160$3b3db420$@com> 在Windows Vista 下面怎么用perl发邮件,我希望我的电脑自动每隔一段时间发一个指 定的附件到一个地址。 Bruce -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/china-pm/attachments/20080212/a154dcf1/attachment.html From prinbra at gmail.com Tue Feb 12 12:01:35 2008 From: prinbra at gmail.com (Prince Brave) Date: Wed, 13 Feb 2008 04:01:35 +0800 Subject: [PerlChina] send mail in windows VISTA In-Reply-To: <000001c86d86$69149160$3b3db420$@com> References: <000001c86d86$69149160$3b3db420$@com> Message-ID: <47B1FB1F.3070307@gmail.com> An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/china-pm/attachments/20080213/7bf44685/attachment.html From bruce1914 at gmail.com Wed Feb 13 04:49:06 2008 From: bruce1914 at gmail.com (Bruce Cheng) Date: Wed, 13 Feb 2008 20:49:06 +0800 Subject: [PerlChina] =?gb2312?b?tPC4tDogIHNlbmQgbWFpbCBpbiB3aW5kb3dzIFZJ?= =?gb2312?b?U1RB?= In-Reply-To: <47B1FB1F.3070307@gmail.com> References: <000001c86d86$69149160$3b3db420$@com> <47B1FB1F.3070307@gmail.com> Message-ID: <000401c86e3e$d6b7da20$84278e60$@com> 我的代码是这样写的: #! c:/perl/bin/perl.exe use Net::SMTP ; $smtp = Net::SMTP->new('smtp.gmail.com') or die "Error1 : $!\n" ; print $smtp->domain ; $smtp->auth('username', 'password') or die "Error2 : $!\n"; $smtp->mail('bruce1914 at gmail.com') or die "Error3 : $!\n"; $smtp->to('bruce1985cx at 163.com') or die "Error4 : $!\n"; $smtp->data() ; print $smtp ; $smtp->datasend("To: bruce1985cx at 163.com\n") or die "Error5 : $!\n" ; $smtp->datasend("\n") ; $smtp->datasend("A simple test message\n") or die "Error 6: $!\n" ; $smtp->dataend() or die "Error7 : $!\n"; $smtp->quit ; 运行结果: Error2 : No such file or directory mx.google.com 我试了很多网上别人提供的代码都不行,不知道哪儿有问题。 发件人: china-pm-bounces+bruce1914=gmail.com at pm.org [mailto:china-pm-bounces+bruce1914=gmail.com at pm.org] 代表 Prince Brave 发送时间: 2008年2月13日 4:02 收件人: china-pm at pm.org 主题: Re: [PerlChina] send mail in windows VISTA 你可以使用perl Net::SMTP模块来实现 Bruce Cheng 写道: 在Windows Vista 下面怎么用perl发邮件,我希望我的电脑自动每隔一 段时间发一个 指定的附件到一个地址。 Bruce _____ _______________________________________________ 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/20080213/fd1a2a32/attachment.html From prinbra at gmail.com Wed Feb 13 05:10:10 2008 From: prinbra at gmail.com (Prince Brave) Date: Wed, 13 Feb 2008 21:10:10 +0800 Subject: [PerlChina] =?gb2312?b?tPC4tDogIHNlbmQgbWFpbCBpbiB3aW5kb3dzIFZJ?= =?gb2312?b?U1RB?= In-Reply-To: <000401c86e3e$d6b7da20$84278e60$@com> References: <000001c86d86$69149160$3b3db420$@com> <47B1FB1F.3070307@gmail.com> <000401c86e3e$d6b7da20$84278e60$@com> Message-ID: <47B2EC32.1040003@gmail.com> 首先需要指出的是:gmail 所使用的端口不是默认的 SMTP 端口25, 而是端口465, 而且也不是普通的smtp连接,而是带ssl的smtp(有关信信息在gmail的帮助中的邮 件客户端设置可以看到)。 你可以在CPAN上搜索smtp ssl 等的模块。perl 核心模块中的Net::SMTP只支持 sasl验证。 另外一个问题是:在认证之前你应该给smtp服务器发送一个ELHO命令,即先$smtp-> hello(),然后才是$smtp-> auth();关于smtp协议的细节 你有时间的话可以看一下相关的rfc文档,可以在google搜索" smtp rfc ",这样 你会对邮件发送的细节有个清楚的认识。 Bruce Cheng 写道: > > 我的代码是这样写的: > > #! c:/perl/bin/perl.exe > > use Net::SMTP ; > > $smtp = Net::SMTP->new('smtp.gmail.com') or die "Error1 : $!\n" ; > > print $smtp->domain ; > > $smtp->auth('username', 'password') or die "Error2 : $!\n"; > > $smtp->mail('bruce1914 at gmail.com') or die "Error3 : $!\n"; > > $smtp->to('bruce1985cx at 163.com') or die "Error4 : $!\n"; > > $smtp->data() ; > > print $smtp ; > > $smtp->datasend("To: bruce1985cx at 163.com\n") or die "Error5 : $!\n" ; > > $smtp->datasend("\n") ; > > $smtp->datasend("A simple test message\n") or die "Error 6: $!\n" ; > > $smtp->dataend() or die "Error7 : $!\n"; > > $smtp->quit ; > > 运行结果: > > Error2 : No such file or directory > > mx.google.com > > 我试了很多网上别人提供的代码都不行,不知道哪儿有问题。 > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/china-pm/attachments/20080213/21348e27/attachment-0001.html From bruce1914 at gmail.com Wed Feb 13 05:13:50 2008 From: bruce1914 at gmail.com (Bruce Cheng) Date: Wed, 13 Feb 2008 21:13:50 +0800 Subject: [PerlChina] =?gb2312?b?tPC4tDogILTwuLQ6ICBzZW5kIG1haWwgaW4gd2lu?= =?gb2312?b?ZG93cyBWSVNUQQ==?= In-Reply-To: <47B2EC32.1040003@gmail.com> References: <000001c86d86$69149160$3b3db420$@com> <47B1FB1F.3070307@gmail.com> <000401c86e3e$d6b7da20$84278e60$@com> <47B2EC32.1040003@gmail.com> Message-ID: <000f01c86e42$4c08c840$e41a58c0$@com> 好的, 谢谢! 发件人: china-pm-bounces+bruce1914=gmail.com at pm.org [mailto:china-pm-bounces+bruce1914=gmail.com at pm.org] 代表 Prince Brave 发送时间: 2008年2月13日 21:10 收件人: china-pm at pm.org 主题: Re: [PerlChina] 答复: send mail in windows VISTA 首先需要指出的是:gmail 所使用的端口不是默认的 SMTP 端口25, 而是端口465,而且 也不是普通的smtp连接,而是带ssl的smtp(有关信信息在gmail的帮助中的邮件客户端 设置可以看到)。 你可以在CPAN上搜索smtp ssl 等的模块。perl 核心模块中的Net::SMTP只支持sasl验 证。 另外一个问题是:在认证之前你应该给smtp服务器发送一个ELHO命令,即先 $smtp->hello(),然后才是$smtp-> auth();关于smtp协议的细节 你有时间的话可以看一下相关的rfc文档,可以在google搜索" smtp rfc ",这样你会 对邮件发送的细节有个清楚的认识。 Bruce Cheng 写道: 我的代码是这样写的: #! c:/perl/bin/perl.exe use Net::SMTP ; $smtp = Net::SMTP->new('smtp.gmail.com') or die "Error1 : $!\n" ; print $smtp->domain ; $smtp->auth('username', 'password') or die "Error2 : $!\n"; $smtp->mail('bruce1914 at gmail.com') or die "Error3 : $!\n"; $smtp->to('bruce1985cx at 163.com') or die "Error4 : $!\n"; $smtp->data() ; print $smtp ; $smtp->datasend("To: bruce1985cx at 163.com\n") or die "Error5 : $!\n" ; $smtp->datasend("\n") ; $smtp->datasend("A simple test message\n") or die "Error 6: $!\n" ; $smtp->dataend() or die "Error7 : $!\n"; $smtp->quit ; 运行结果: Error2 : No such file or directory mx.google.com 我试了很多网上别人提供的代码都不行,不知道 哪儿有问题。 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/china-pm/attachments/20080213/8155508a/attachment.html From stevenzyk at gmail.com Mon Feb 18 21:39:34 2008 From: stevenzyk at gmail.com (Steven Zhu) Date: Tue, 19 Feb 2008 13:39:34 +0800 Subject: [PerlChina] =?gb2312?b?x/PW+sjnus6/ydLUtsHIodPKz+TW0NPKvP6woQ==?= In-Reply-To: <160074.53436.qm@web58706.mail.re1.yahoo.com> References: <160074.53436.qm@web58706.mail.re1.yahoo.com> Message-ID: <4f870e20802182139i4e07c9eap980ba612041aa8ea@mail.gmail.com> perl不熟,最近有空开始尝试用IO::Socket模块建立通讯 碰到问题server和client端可以建立连接,但是server端收不到client发的数据 请帮忙看看是哪里出了问题啊? server code: use IO::Socket; $sock = new IO::Socket::INET (LocalAddr => 'software01', LocalPort => 4455, Proto => 'tcp', Listen => 5); die "$!" unless $sock; $success_accept = $sock->accept(); $receive = $sock->recv($data,100,0); client code: use IO::Socket; $sock = new IO::Socket::INET (PeerAddr => 'software01', PeerPort => 4455, Proto => 'tcp'); die "$!" unless $sock; $success_send = $sock->send("asdf") or print "connection closed at other end"; 在08-1-31,tiger peng 写道: > > Be careful! Someone else may 监听你的请求/密码. > > ----- Original Message ---- > From: truncatei > To: china-pm at pm.org > Sent: Wednesday, January 30, 2008 9:47:08 PM > Subject: Re: [PerlChina] 求助如何可以读取邮箱中邮件啊 > > Perl可以写服务器程序的,看看IO:Socket模块。 > > 1. 在服务器上创建一个服务器进程,一直监听来自某个端口的请求 > 2. 客户端发起请求,连接到步骤1中使用的端口,连接成功后发送一些数据,比如密码和需要执行的命令 > 3. 服务器端收到客户的请求数据,验证密码,通过system调用执行命令,返回状态给客户端,如果可以取到运行后的结果数据,返回数据 > 4. 数据传输格式自己定义,客户端和服务器都遵守约定就好 > > > 2008/1/31 Steven Zhu : > > > 这样的话太麻烦了,你所说的监听这个如何做哪,是否可以提供个思路或者例子啊? > > perl不是很熟,呵呵,谢谢! > > > > > > > > -- > 如果觉得无聊,您不妨访问Google Reader消遣 http://www.google.com/reader/view > 要尝试黑版本Google,请访问 > http://www.google.com/custom?q=&sa=Search&client=pub-4021907304270164&forid=1&channel=7519554017&ie=UTF-8&oe=UTF-8&cof=GALT%3A%23FF9900%3BGL%3A1%3BDIV%3A%230033FF%3BVLC%3ACC9900%3BAH%3Acenter%3BBGC%3A000000%3BLBGC%3A000000%3BALC%3AFFFFFF%3BLC%3AFFFFFF%3BT%3ACCCCCC%3BGFNT%3A33CC00%3BGIMP%3A33CC00%3BFORID%3A1%3B&hl=en > > > -----Inline Attachment Follows----- > > _______________________________________________ > 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 > -- BR Steven.zhu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/china-pm/attachments/20080219/fbb66971/attachment.html From stevenzyk at gmail.com Tue Feb 19 01:09:07 2008 From: stevenzyk at gmail.com (Steven Zhu) Date: Tue, 19 Feb 2008 17:09:07 +0800 Subject: [PerlChina] =?gb2312?b?tPC4tDogtPC4tDogc2VuZCBtYWlsIGluIHdpbmRv?= =?gb2312?b?d3MgVklTVEE=?= In-Reply-To: <000f01c86e42$4c08c840$e41a58c0$@com> References: <000001c86d86$69149160$3b3db420$@com> <47B1FB1F.3070307@gmail.com> <000401c86e3e$d6b7da20$84278e60$@com> <47B2EC32.1040003@gmail.com> <000f01c86e42$4c08c840$e41a58c0$@com> Message-ID: <4f870e20802190109l706fd3ddjdd03f2e3474b2f90@mail.gmail.com> 我使用io::socket,实现了server和client之间的通信 目前碰的一个问题,从client这段发送命令到server这边,当同时又2个client发送指令到server上去的话,将会按照指令发送的先后依次执行,我希望做到,当正在执行时,又有指令发送到server上,同时也开始执行相应操作,而不是等前一个指令的操作全部完成后,才开始 简单的说,也就是希望可以同时收到不同client上传来的指令,server上同时执行这些指令操作 在08-2-13,Bruce Cheng 写道: > > 好的, 谢谢! > > > > *发件人:* china-pm-bounces+bruce1914=gmail.com at pm.org [mailto: > china-pm-bounces+bruce1914=gmail.com at pm.org] *代表 *Prince Brave > *发送时间:* 2008年2月13日 21:10 > *收件人:* china-pm at pm.org > *主题:* Re: [PerlChina] 答复: send mail in windows VISTA > > > > 首先需要指出的是:gmail 所使用的端口不是默认的 SMTP 端口25, 而是端口465,而且也不是普通的smtp连接,而是带ssl的smtp > (有关信信息在gmail的帮助中的邮件客户端设置可以看到)。 > 你可以在CPAN上搜索smtp ssl 等的模块。perl 核心模块中的Net::SMTP只支持sasl验证。 > 另外一个问题是:在认证之前你应该给smtp服务器发送一个ELHO命令,即先$smtp->hello(),然后才是$smtp-> auth();关于 > smtp协议的细节 > 你有时间的话可以看一下相关的rfc文档,可以在google搜索" smtp rfc ",这样你会对邮件发送的细节有个清楚的认识。 > Bruce Cheng 写道: > > 我的代码是这样写的: > > > > #! c:/perl/bin/perl.exe > > > > use Net::SMTP ; > > > > $smtp = Net::SMTP->new('smtp.gmail.com') or die "Error1 : $!\n" ; > > > > print $smtp->domain ; > > > > $smtp->auth('username', 'password') or die "Error2 : $!\n"; > > $smtp->mail('bruce1914 at gmail.com') or die "Error3 : $!\n"; > > $smtp->to('bruce1985cx at 163.com') or die "Error4 : $!\n"; > > $smtp->data() ; > > > > print $smtp ; > > > > $smtp->datasend("To: bruce1985cx at 163.com\n ") or > die "Error5 : $!\n" ; > > $smtp->datasend("\n") ; > > $smtp->datasend("A simple test message\n") or die "Error 6: $!\n" ; > > $smtp->dataend() or die "Error7 : $!\n"; > > > > $smtp->quit ; > > > > 运行结果: > > > > Error2 : No such file or directory > > mx.google.com > > > > 我试了很多网上别人提供的代码都不行,不知道哪儿有问题。 > > > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm > -- BR Steven.zhu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/china-pm/attachments/20080219/f47d9348/attachment-0001.html From truncatei at gmail.com Tue Feb 19 05:01:27 2008 From: truncatei at gmail.com (truncatei) Date: Tue, 19 Feb 2008 21:01:27 +0800 Subject: [PerlChina] =?utf-8?b?562U5aSNOiDnrZTlpI06IHNlbmQgbWFpbCBpbiB3?= =?utf-8?q?indows_VISTA?= In-Reply-To: <4f870e20802190109l706fd3ddjdd03f2e3474b2f90@mail.gmail.com> References: <000001c86d86$69149160$3b3db420$@com> <47B1FB1F.3070307@gmail.com> <000401c86e3e$d6b7da20$84278e60$@com> <47B2EC32.1040003@gmail.com> <000f01c86e42$4c08c840$e41a58c0$@com> <4f870e20802190109l706fd3ddjdd03f2e3474b2f90@mail.gmail.com> Message-ID: 每个Client一个子进程 2008/2/19 Steven Zhu : > 我使用io::socket,实现了server和client之间的通信 > > 目前碰的一个问题,从client这段发送命令到server这边,当同时又2个client发送指令到server上去的话,将会按照指令发送的先后依次执行,我希望做到,当正在执行时,又有指令发送到server上,同时也开始执行相应操作,而不是等前一个指令的操作全部完成后,才开始 > 简单的说,也就是希望可以同时收到不同client上传来的指令,server上同时执行这些指令操作 > > > 在08-2-13,Bruce Cheng 写道: > > > > 好的, 谢谢! > > > > > > > > *发件人:* china-pm-bounces+bruce1914=gmail.com at pm.org [mailto: > > china-pm-bounces+bruce1914=gmail.com at pm.org] *代表 *Prince Brave > > *发送时间:* 2008年2月13日 21:10 > > *收件人:* china-pm at pm.org > > *主题:* Re: [PerlChina] 答复: send mail in windows VISTA > > > > > > > > 首先需要指出的是:gmail 所使用的端口不是默认的 SMTP 端口25, 而是端口465,而且也不是普通的smtp连接,而是带ssl的smtp > > (有关信信息在gmail的帮助中的邮件客户端设置可以看到)。 > > 你可以在CPAN上搜索smtp ssl 等的模块。perl 核心模块中的Net::SMTP只支持sasl验证。 > > 另外一个问题是:在认证之前你应该给smtp服务器发送一个ELHO命令,即先$smtp->hello(),然后才是$smtp-> auth(); > > 关于smtp协议的细节 > > 你有时间的话可以看一下相关的rfc文档,可以在google搜索" smtp rfc ",这样你会对邮件发送的细节有个清楚的认识。 > > Bruce Cheng 写道: > > > > 我的代码是这样写的: > > > > > > > > #! c:/perl/bin/perl.exe > > > > > > > > use Net::SMTP ; > > > > > > > > $smtp = Net::SMTP->new('smtp.gmail.com') or die "Error1 : $!\n" ; > > > > > > > > print $smtp->domain ; > > > > > > > > $smtp->auth('username', 'password') or die "Error2 : $!\n"; > > > > $smtp->mail('bruce1914 at gmail.com') or die "Error3 : $!\n"; > > > > $smtp->to('bruce1985cx at 163.com') or die "Error4 : $!\n"; > > > > $smtp->data() ; > > > > > > > > print $smtp ; > > > > > > > > $smtp->datasend("To: bruce1985cx at 163.com\n ") > > or die "Error5 : $!\n" ; > > > > $smtp->datasend("\n") ; > > > > $smtp->datasend("A simple test message\n") or die "Error 6: $!\n" ; > > > > $smtp->dataend() or die "Error7 : $!\n"; > > > > > > > > $smtp->quit ; > > > > > > > > 运行结果: > > > > > > > > Error2 : No such file or directory > > > > mx.google.com > > > > > > > > 我试了很多网上别人提供的代码都不行,不知道哪儿有问题。 > > > > > > > > _______________________________________________ > > China-pm mailing list > > China-pm at pm.org > > http://mail.pm.org/mailman/listinfo/china-pm > > > > > > -- > BR > Steven.zhu > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm > -- 如果觉得无聊,您不妨访问Google Reader消遣 http://www.google.com/reader/view 要尝试黑版本Google,请访问 http://www.google.com/custom?q=&sa=Search&client=pub-4021907304270164&forid=1&channel=7519554017&ie=UTF-8&oe=UTF-8&cof=GALT%3A%23FF9900%3BGL%3A1%3BDIV%3A%230033FF%3BVLC%3ACC9900%3BAH%3Acenter%3BBGC%3A000000%3BLBGC%3A000000%3BALC%3AFFFFFF%3BLC%3AFFFFFF%3BT%3ACCCCCC%3BGFNT%3A33CC00%3BGIMP%3A33CC00%3BFORID%3A1%3B&hl=en -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/china-pm/attachments/20080219/a1a22eef/attachment.html From stevenzyk at gmail.com Tue Feb 19 17:17:43 2008 From: stevenzyk at gmail.com (Steven Zhu) Date: Wed, 20 Feb 2008 09:17:43 +0800 Subject: [PerlChina] =?gb2312?b?tPC4tDogtPC4tDogc2VuZCBtYWlsIGluIHdpbmRv?= =?gb2312?b?d3MgVklTVEE=?= In-Reply-To: References: <000001c86d86$69149160$3b3db420$@com> <47B1FB1F.3070307@gmail.com> <000401c86e3e$d6b7da20$84278e60$@com> <47B2EC32.1040003@gmail.com> <000f01c86e42$4c08c840$e41a58c0$@com> <4f870e20802190109l706fd3ddjdd03f2e3474b2f90@mail.gmail.com> Message-ID: <4f870e20802191717l4a9351a7o33ccbc79d4b5748f@mail.gmail.com> 每个client一个子进程的话,系统资源消耗会比较大吧 还有其他办法吗? 在08-2-19,truncatei 写道: > > 每个Client一个子进程 > > 2008/2/19 Steven Zhu : > > > 我使用io::socket,实现了server和client之间的通信 > > > > 目前碰的一个问题,从client这段发送命令到server这边,当同时又2个client发送指令到server上去的话,将会按照指令发送的先后依次执行,我希望做到,当正在执行时,又有指令发送到server上,同时也开始执行相应操作,而不是等前一个指令的操作全部完成后,才开始 > > 简单的说,也就是希望可以同时收到不同client上传来的指令,server上同时执行这些指令操作 > > > > > > 在08-2-13,Bruce Cheng 写道: > > > > > > 好的, 谢谢! > > > > > > > > > > > > *发件人:* china-pm-bounces+bruce1914=gmail.com at pm.org [mailto: > > > china-pm-bounces+bruce1914=gmail.com at pm.org] *代表 *Prince Brave > > > *发送时间:* 2008年2月13日 21:10 > > > *收件人:* china-pm at pm.org > > > *主题:* Re: [PerlChina] 答复: send mail in windows VISTA > > > > > > > > > > > > 首先需要指出的是:gmail 所使用的端口不是默认的 SMTP 端口25, 而是端口465,而且也不是普通的smtp连接,而是带ssl的 > > > smtp(有关信信息在gmail的帮助中的邮件客户端设置可以看到)。 > > > 你可以在CPAN上搜索smtp ssl 等的模块。perl 核心模块中的Net::SMTP只支持sasl验证。 > > > 另外一个问题是:在认证之前你应该给smtp服务器发送一个ELHO命令,即先$smtp->hello(),然后才是$smtp-> > > > auth();关于smtp协议的细节 > > > 你有时间的话可以看一下相关的rfc文档,可以在google搜索" smtp rfc ",这样你会对邮件发送的细节有个清楚的认识。 > > > Bruce Cheng 写道: > > > > > > 我的代码是这样写的: > > > > > > > > > > > > #! c:/perl/bin/perl.exe > > > > > > > > > > > > use Net::SMTP ; > > > > > > > > > > > > $smtp = Net::SMTP->new('smtp.gmail.com') or die "Error1 : $!\n" ; > > > > > > > > > > > > print $smtp->domain ; > > > > > > > > > > > > $smtp->auth('username', 'password') or die "Error2 : $!\n"; > > > > > > $smtp->mail('bruce1914 at gmail.com') or die "Error3 : $!\n"; > > > > > > $smtp->to('bruce1985cx at 163.com') or die "Error4 : $!\n"; > > > > > > $smtp->data() ; > > > > > > > > > > > > print $smtp ; > > > > > > > > > > > > $smtp->datasend("To: bruce1985cx at 163.com\n ") > > > or die "Error5 : $!\n" ; > > > > > > $smtp->datasend("\n") ; > > > > > > $smtp->datasend("A simple test message\n") or die "Error 6: $!\n" ; > > > > > > $smtp->dataend() or die "Error7 : $!\n"; > > > > > > > > > > > > $smtp->quit ; > > > > > > > > > > > > 运行结果: > > > > > > > > > > > > Error2 : No such file or directory > > > > > > mx.google.com > > > > > > > > > > > > 我试了很多网上别人提供的代码都不行,不知道哪儿有问题。 > > > > > > > > > > > > > > > _______________________________________________ > > > China-pm mailing list > > > China-pm at pm.org > > > http://mail.pm.org/mailman/listinfo/china-pm > > > > > > > > > > > > > > -- > > BR > > Steven.zhu > > _______________________________________________ > > China-pm mailing list > > China-pm at pm.org > > http://mail.pm.org/mailman/listinfo/china-pm > > > > > > -- > 如果觉得无聊,您不妨访问Google Reader消遣 http://www.google.com/reader/view > 要尝试黑版本Google,请访问 > http://www.google.com/custom?q=&sa=Search&client=pub-4021907304270164&forid=1&channel=7519554017&ie=UTF-8&oe=UTF-8&cof=GALT%3A%23FF9900%3BGL%3A1%3BDIV%3A%230033FF%3BVLC%3ACC9900%3BAH%3Acenter%3BBGC%3A000000%3BLBGC%3A000000%3BALC%3AFFFFFF%3BLC%3AFFFFFF%3BT%3ACCCCCC%3BGFNT%3A33CC00%3BGIMP%3A33CC00%3BFORID%3A1%3B&hl=en > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm > -- BR Steven.zhu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/china-pm/attachments/20080220/185098af/attachment.html From truncatei at gmail.com Tue Feb 19 21:43:59 2008 From: truncatei at gmail.com (truncatei) Date: Wed, 20 Feb 2008 13:43:59 +0800 Subject: [PerlChina] =?utf-8?b?562U5aSNOiDnrZTlpI06IHNlbmQgbWFpbCBpbiB3?= =?utf-8?q?indows_VISTA?= In-Reply-To: <4f870e20802191717l4a9351a7o33ccbc79d4b5748f@mail.gmail.com> References: <000001c86d86$69149160$3b3db420$@com> <47B1FB1F.3070307@gmail.com> <000401c86e3e$d6b7da20$84278e60$@com> <47B2EC32.1040003@gmail.com> <000f01c86e42$4c08c840$e41a58c0$@com> <4f870e20802190109l706fd3ddjdd03f2e3474b2f90@mail.gmail.com> <4f870e20802191717l4a9351a7o33ccbc79d4b5748f@mail.gmail.com> Message-ID: 用线程 2008/2/20 Steven Zhu : > 每个client一个子进程的话,系统资源消耗会比较大吧 > 还有其他办法吗? > > > 在08-2-19,truncatei 写道: > > > 每个Client一个子进程 > > > > 2008/2/19 Steven Zhu : > > > > > 我使用io::socket,实现了server和client之间的通信 > > > > > > 目前碰的一个问题,从client这段发送命令到server这边,当同时又2个client发送指令到server上去的话,将会按照指令发送的先后依次执行,我希望做到,当正在执行时,又有指令发送到server上,同时也开始执行相应操作,而不是等前一个指令的操作全部完成后,才开始 > > > 简单的说,也就是希望可以同时收到不同client上传来的指令,server上同时执行这些指令操作 > > > > > > > > > 在08-2-13,Bruce Cheng 写道: > > > > > > > > 好的, 谢谢! > > > > > > > > > > > > > > > > *发件人:* china-pm-bounces+bruce1914=gmail.com at pm.org [mailto: > > > > china-pm-bounces+bruce1914=gmail.com at pm.org] *代表 *Prince Brave > > > > *发送时间:* 2008年2月13日 21:10 > > > > *收件人:* china-pm at pm.org > > > > *主题:* Re: [PerlChina] 答复: send mail in windows VISTA > > > > > > > > > > > > > > > > 首先需要指出的是:gmail 所使用的端口不是默认的 SMTP 端口25, 而是端口465,而且也不是普通的smtp连接,而是带ssl的 > > > > smtp(有关信信息在gmail的帮助中的邮件客户端设置可以看到)。 > > > > 你可以在CPAN上搜索smtp ssl 等的模块。perl 核心模块中的Net::SMTP只支持sasl验证。 > > > > 另外一个问题是:在认证之前你应该给smtp服务器发送一个ELHO命令,即先$smtp->hello(),然后才是$smtp-> > > > > auth();关于smtp协议的细节 > > > > 你有时间的话可以看一下相关的rfc文档,可以在google搜索" smtp rfc ",这样你会对邮件发送的细节有个清楚的认识。 > > > > Bruce Cheng 写道: > > > > > > > > 我的代码是这样写的: > > > > > > > > > > > > > > > > #! c:/perl/bin/perl.exe > > > > > > > > > > > > > > > > use Net::SMTP ; > > > > > > > > > > > > > > > > $smtp = Net::SMTP->new('smtp.gmail.com') or die "Error1 : $!\n" ; > > > > > > > > > > > > > > > > print $smtp->domain ; > > > > > > > > > > > > > > > > $smtp->auth('username', 'password') or die "Error2 : $!\n"; > > > > > > > > $smtp->mail('bruce1914 at gmail.com') or die "Error3 : $!\n"; > > > > > > > > $smtp->to('bruce1985cx at 163.com') or die "Error4 : $!\n"; > > > > > > > > $smtp->data() ; > > > > > > > > > > > > > > > > print $smtp ; > > > > > > > > > > > > > > > > $smtp->datasend("To: bruce1985cx at 163.com\n ") > > > > or die "Error5 : $!\n" ; > > > > > > > > $smtp->datasend("\n") ; > > > > > > > > $smtp->datasend("A simple test message\n") or die "Error 6: $!\n" ; > > > > > > > > $smtp->dataend() or die "Error7 : $!\n"; > > > > > > > > > > > > > > > > $smtp->quit ; > > > > > > > > > > > > > > > > 运行结果: > > > > > > > > > > > > > > > > Error2 : No such file or directory > > > > > > > > mx.google.com > > > > > > > > > > > > > > > > 我试了很多网上别人提供的代码都不行,不知道哪儿有问题。 > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > China-pm mailing list > > > > China-pm at pm.org > > > > http://mail.pm.org/mailman/listinfo/china-pm > > > > > > > > > > > > > > > > > > > > -- > > > BR > > > Steven.zhu > > > _______________________________________________ > > > China-pm mailing list > > > China-pm at pm.org > > > http://mail.pm.org/mailman/listinfo/china-pm > > > > > > > > > > > -- > > 如果觉得无聊,您不妨访问Google Reader消遣 http://www.google.com/reader/view > > 要尝试黑版本Google,请访问 > > http://www.google.com/custom?q=&sa=Search&client=pub-4021907304270164&forid=1&channel=7519554017&ie=UTF-8&oe=UTF-8&cof=GALT%3A%23FF9900%3BGL%3A1%3BDIV%3A%230033FF%3BVLC%3ACC9900%3BAH%3Acenter%3BBGC%3A000000%3BLBGC%3A000000%3BALC%3AFFFFFF%3BLC%3AFFFFFF%3BT%3ACCCCCC%3BGFNT%3A33CC00%3BGIMP%3A33CC00%3BFORID%3A1%3B&hl=en > > _______________________________________________ > > China-pm mailing list > > China-pm at pm.org > > http://mail.pm.org/mailman/listinfo/china-pm > > > > > > -- > BR > Steven.zhu > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm > -- 如果觉得无聊,您不妨访问Google Reader消遣 http://www.google.com/reader/view 要尝试黑版本Google,请访问 http://www.google.com/custom?q=&sa=Search&client=pub-4021907304270164&forid=1&channel=7519554017&ie=UTF-8&oe=UTF-8&cof=GALT%3A%23FF9900%3BGL%3A1%3BDIV%3A%230033FF%3BVLC%3ACC9900%3BAH%3Acenter%3BBGC%3A000000%3BLBGC%3A000000%3BALC%3AFFFFFF%3BLC%3AFFFFFF%3BT%3ACCCCCC%3BGFNT%3A33CC00%3BGIMP%3A33CC00%3BFORID%3A1%3B&hl=en -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/china-pm/attachments/20080220/dfa2420d/attachment-0001.html From wanmyome at gmail.com Wed Feb 20 02:39:29 2008 From: wanmyome at gmail.com (=?UTF-8?B?5LiH5pyd5Lyf?=) Date: Wed, 20 Feb 2008 18:39:29 +0800 Subject: [PerlChina] =?utf-8?b?YmJzLnBlcmxjaGluYS5vcmfln5/lkI3lnKjosIE=?= =?utf-8?b?5omL5LiK?= In-Reply-To: <47BBFE38.9000405@gmail.com> References: <47BBFE38.9000405@gmail.com> Message-ID: <9ff89e80802200239o11e24f4bn2709e3a3e254b6ef@mail.gmail.com> 前两天可用,这两天突然挂了,请解析到61.129.45.175,和 perlchina.sun126.com放一起 61.129.45.175这台服务器我在维护,可以保证服务不会长时间中断 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/china-pm/attachments/20080220/86853fe8/attachment.html From hylinux at gmail.com Wed Feb 20 20:59:50 2008 From: hylinux at gmail.com (Mike.G) Date: Thu, 21 Feb 2008 12:59:50 +0800 Subject: [PerlChina] =?gb2312?b?x/PW+sjnus6/ydLUtsHIodPKz+TW0NPKvP6woQ==?= In-Reply-To: <4f870e20802182139i4e07c9eap980ba612041aa8ea@mail.gmail.com> References: <160074.53436.qm@web58706.mail.re1.yahoo.com> <4f870e20802182139i4e07c9eap980ba612041aa8ea@mail.gmail.com> Message-ID: <74646cb40802202059h49ced29dm182abe48bfb6aa9d@mail.gmail.com> 你这个有些不对。 recv是针对udp或者是紧急数据的。 tcp应该是联上去,然后直接像读文件一样读就可以了。 在08-2-19,Steven Zhu 写道: > > perl不熟,最近有空开始尝试用IO::Socket模块建立通讯 > 碰到问题server和client端可以建立连接,但是server端收不到client发的数据 > 请帮忙看看是哪里出了问题啊? > server code: > use IO::Socket; > $sock = new IO::Socket::INET (LocalAddr => 'software01', > LocalPort => 4455, > Proto => 'tcp', > Listen => 5); > die "$!" unless $sock; > $success_accept = $sock->accept(); > $receive = $sock->recv($data,100,0); > > client code: > use IO::Socket; > $sock = new IO::Socket::INET (PeerAddr => 'software01', > PeerPort => 4455, > Proto => 'tcp'); > die "$!" unless $sock; > $success_send = $sock->send("asdf") or print "connection closed at other > end"; > > > 在08-1-31,tiger peng 写道: > > > > Be careful! Someone else may 监听你的请求/密码. > > > > ----- Original Message ---- > > From: truncatei > > To: china-pm at pm.org > > Sent: Wednesday, January 30, 2008 9:47:08 PM > > Subject: Re: [PerlChina] 求助如何可以读取邮箱中邮件啊 > > > > Perl可以写服务器程序的,看看IO:Socket模块。 > > > > 1. 在服务器上创建一个服务器进程,一直监听来自某个端口的请求 > > 2. 客户端发起请求,连接到步骤1中使用的端口,连接成功后发送一些数据,比如密码和需要执行的命令 > > 3. 服务器端收到客户的请求数据,验证密码,通过system调用执行命令,返回状态给客户端,如果可以取到运行后的结果数据,返回数据 > > 4. 数据传输格式自己定义,客户端和服务器都遵守约定就好 > > > > > > 2008/1/31 Steven Zhu : > > > > > 这样的话太麻烦了,你所说的监听这个如何做哪,是否可以提供个思路或者例子啊? > > > perl不是很熟,呵呵,谢谢! > > > > > > > > > > > > > > -- > > 如果觉得无聊,您不妨访问Google Reader消遣 http://www.google.com/reader/view > > 要尝试黑版本Google,请访问 > > http://www.google.com/custom?q=&sa=Search&client=pub-4021907304270164&forid=1&channel=7519554017&ie=UTF-8&oe=UTF-8&cof=GALT%3A%23FF9900%3BGL%3A1%3BDIV%3A%230033FF%3BVLC%3ACC9900%3BAH%3Acenter%3BBGC%3A000000%3BLBGC%3A000000%3BALC%3AFFFFFF%3BLC%3AFFFFFF%3BT%3ACCCCCC%3BGFNT%3A33CC00%3BGIMP%3A33CC00%3BFORID%3A1%3B&hl=en > > > > > > -----Inline Attachment Follows----- > > > > _______________________________________________ > > 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 > > > > > > -- > BR > Steven.zhu > _______________________________________________ > 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/20080221/29b24a44/attachment.html From hylinux at gmail.com Wed Feb 20 21:04:14 2008 From: hylinux at gmail.com (Mike.G) Date: Thu, 21 Feb 2008 13:04:14 +0800 Subject: [PerlChina] =?gb2312?b?tPC4tDogtPC4tDogc2VuZCBtYWlsIGluIHdpbmRv?= =?gb2312?b?d3MgVklTVEE=?= In-Reply-To: References: <000001c86d86$69149160$3b3db420$@com> <47B1FB1F.3070307@gmail.com> <000401c86e3e$d6b7da20$84278e60$@com> <47B2EC32.1040003@gmail.com> <000f01c86e42$4c08c840$e41a58c0$@com> <4f870e20802190109l706fd3ddjdd03f2e3474b2f90@mail.gmail.com> <4f870e20802191717l4a9351a7o33ccbc79d4b5748f@mail.gmail.com> Message-ID: <74646cb40802202104w1b9163edy133c3241c1ab5659@mail.gmail.com> 小应用,用进程没关系。而且进程还可以使用预创建进程等。都是可以的。 线程不好,至少在perl里是我用得比较少。而且不一定线程就能提高更多的性能,看你的设计做得怎么样。 不过我相信一般的应用进程足够了。 如果你真的进程不能符合你的要求了(线程也好不到哪儿去),那就用非阻塞IO。 利用网络比CPU慢的原理。使用IO::Select或者是IO::Poll来做。不过不太相信你的应用复杂到需要使用非阻塞IO。 在08-2-20,truncatei 写道: > > 用线程 > > 2008/2/20 Steven Zhu : > > > 每个client一个子进程的话,系统资源消耗会比较大吧 > > 还有其他办法吗? > > > > > > 在08-2-19,truncatei 写道: > > > > > 每个Client一个子进程 > > > > > > 2008/2/19 Steven Zhu : > > > > > > > 我使用io::socket,实现了server和client之间的通信 > > > > > > > > 目前碰的一个问题,从client这段发送命令到server这边,当同时又2个client发送指令到server上去的话,将会按照指令发送的先后依次执行,我希望做到,当正在执行时,又有指令发送到server上,同时也开始执行相应操作,而不是等前一个指令的操作全部完成后,才开始 > > > > 简单的说,也就是希望可以同时收到不同client上传来的指令,server上同时执行这些指令操作 > > > > > > > > > > > > 在08-2-13,Bruce Cheng 写道: > > > > > > > > > > 好的, 谢谢! > > > > > > > > > > > > > > > > > > > > *发件人:* china-pm-bounces+bruce1914=gmail.com at pm.org [mailto: > > > > > china-pm-bounces+bruce1914=gmail.com at pm.org] *代表 *Prince Brave > > > > > *发送时间:* 2008年2月13日 21:10 > > > > > *收件人:* china-pm at pm.org > > > > > *主题:* Re: [PerlChina] 答复: send mail in windows VISTA > > > > > > > > > > > > > > > > > > > > 首先需要指出的是:gmail 所使用的端口不是默认的 SMTP 端口25, 而是端口465,而且也不是普通的smtp连接,而是带 > > > > > ssl的smtp(有关信信息在gmail的帮助中的邮件客户端设置可以看到)。 > > > > > 你可以在CPAN上搜索smtp ssl 等的模块。perl 核心模块中的Net::SMTP只支持sasl验证。 > > > > > 另外一个问题是:在认证之前你应该给smtp服务器发送一个ELHO命令,即先$smtp->hello(),然后才是$smtp-> > > > > > auth();关于smtp协议的细节 > > > > > 你有时间的话可以看一下相关的rfc文档,可以在google搜索" smtp rfc ",这样你会对邮件发送的细节有个清楚的认识。 > > > > > Bruce Cheng 写道: > > > > > > > > > > 我的代码是这样写的: > > > > > > > > > > > > > > > > > > > > #! c:/perl/bin/perl.exe > > > > > > > > > > > > > > > > > > > > use Net::SMTP ; > > > > > > > > > > > > > > > > > > > > $smtp = Net::SMTP->new('smtp.gmail.com') or die "Error1 : $!\n" ; > > > > > > > > > > > > > > > > > > > > print $smtp->domain ; > > > > > > > > > > > > > > > > > > > > $smtp->auth('username', 'password') or die "Error2 : $!\n"; > > > > > > > > > > $smtp->mail('bruce1914 at gmail.com') or die "Error3 : $!\n"; > > > > > > > > > > $smtp->to('bruce1985cx at 163.com') or die "Error4 : $!\n"; > > > > > > > > > > $smtp->data() ; > > > > > > > > > > > > > > > > > > > > print $smtp ; > > > > > > > > > > > > > > > > > > > > $smtp->datasend("To: bruce1985cx at 163.com\n") > > > > > or die "Error5 : $!\n" ; > > > > > > > > > > $smtp->datasend("\n") ; > > > > > > > > > > $smtp->datasend("A simple test message\n") or die "Error 6: $!\n" > > > > > ; > > > > > > > > > > $smtp->dataend() or die "Error7 : $!\n"; > > > > > > > > > > > > > > > > > > > > $smtp->quit ; > > > > > > > > > > > > > > > > > > > > 运行结果: > > > > > > > > > > > > > > > > > > > > Error2 : No such file or directory > > > > > > > > > > mx.google.com > > > > > > > > > > > > > > > > > > > > 我试了很多网上别人提供的代码都不行,不知道哪儿有问题。 > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > China-pm mailing list > > > > > China-pm at pm.org > > > > > http://mail.pm.org/mailman/listinfo/china-pm > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > BR > > > > Steven.zhu > > > > _______________________________________________ > > > > China-pm mailing list > > > > China-pm at pm.org > > > > http://mail.pm.org/mailman/listinfo/china-pm > > > > > > > > > > > > > > > > -- > > > 如果觉得无聊,您不妨访问Google Reader消遣 http://www.google.com/reader/view > > > 要尝试黑版本Google,请访问 > > > http://www.google.com/custom?q=&sa=Search&client=pub-4021907304270164&forid=1&channel=7519554017&ie=UTF-8&oe=UTF-8&cof=GALT%3A%23FF9900%3BGL%3A1%3BDIV%3A%230033FF%3BVLC%3ACC9900%3BAH%3Acenter%3BBGC%3A000000%3BLBGC%3A000000%3BALC%3AFFFFFF%3BLC%3AFFFFFF%3BT%3ACCCCCC%3BGFNT%3A33CC00%3BGIMP%3A33CC00%3BFORID%3A1%3B&hl=en > > > _______________________________________________ > > > China-pm mailing list > > > China-pm at pm.org > > > http://mail.pm.org/mailman/listinfo/china-pm > > > > > > > > > > > -- > > BR > > Steven.zhu > > _______________________________________________ > > China-pm mailing list > > China-pm at pm.org > > http://mail.pm.org/mailman/listinfo/china-pm > > > > > > -- > 如果觉得无聊,您不妨访问Google Reader消遣 http://www.google.com/reader/view > 要尝试黑版本Google,请访问 > http://www.google.com/custom?q=&sa=Search&client=pub-4021907304270164&forid=1&channel=7519554017&ie=UTF-8&oe=UTF-8&cof=GALT%3A%23FF9900%3BGL%3A1%3BDIV%3A%230033FF%3BVLC%3ACC9900%3BAH%3Acenter%3BBGC%3A000000%3BLBGC%3A000000%3BALC%3AFFFFFF%3BLC%3AFFFFFF%3BT%3ACCCCCC%3BGFNT%3A33CC00%3BGIMP%3A33CC00%3BFORID%3A1%3B&hl=en > > _______________________________________________ > 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/20080221/1d9189cc/attachment-0001.html From shijialee at gmail.com Thu Feb 21 13:28:35 2008 From: shijialee at gmail.com (Qiang (James) Li) Date: Thu, 21 Feb 2008 16:28:35 -0500 Subject: [PerlChina] =?gb2312?b?YmJzLnBlcmxjaGluYS5vcmfT8sP71NrLrcrWyc8=?= In-Reply-To: <9ff89e80802200239o11e24f4bn2709e3a3e254b6ef@mail.gmail.com> References: <47BBFE38.9000405@gmail.com> <9ff89e80802200239o11e24f4bn2709e3a3e254b6ef@mail.gmail.com> Message-ID: <4ab5ddef0802211328g5d9fecafu10eaf1a73d075d71@mail.gmail.com> 2008/2/20 万朝伟 : > > 前两天可用,这两天突然挂了,请解析到61.129.45.175,和 > perlchina.sun126.com放一起 > 61.129.45.175这台服务器我在维护,可以保证服务不会长时间中断 > dns 已经更新了。 thanks, Qiang From shijialee at gmail.com Thu Feb 21 14:02:48 2008 From: shijialee at gmail.com (Qiang (James) Li) Date: Thu, 21 Feb 2008 17:02:48 -0500 Subject: [PerlChina] =?gb2312?b?YmJzLnBlcmxjaGluYS5vcmfT8sP71NrLrcrWyc8=?= In-Reply-To: <4ab5ddef0802211328g5d9fecafu10eaf1a73d075d71@mail.gmail.com> References: <47BBFE38.9000405@gmail.com> <9ff89e80802200239o11e24f4bn2709e3a3e254b6ef@mail.gmail.com> <4ab5ddef0802211328g5d9fecafu10eaf1a73d075d71@mail.gmail.com> Message-ID: <4ab5ddef0802211402u58397bd8ibab7c14088e6c53@mail.gmail.com> 顺便说一下,我把 perlchina 的各项服务和维护服务的朋友联系信息放到了 wiki, 便于交流. 有问题的请及时提。 http://wiki.perlchina.org/index.php/PerlChina_%E7%AE%A1%E7%90%86%E5%B8%AE%E5%8A%A9 Qiang 2008/2/21 Qiang (James) Li : > 2008/2/20 万朝伟 : > > > > > 前两天可用,这两天突然挂了,请解析到61.129.45.175,和 > > perlchina.sun126.com放一起 > > 61.129.45.175这台服务器我在维护,可以保证服务不会长时间中断 > > > > dns 已经更新了。 > > thanks, > > Qiang > From march.liu at gmail.com Sun Feb 24 08:39:28 2008 From: march.liu at gmail.com (=?GB2312?B?wfX2zg==?=) Date: Mon, 25 Feb 2008 00:39:28 +0800 Subject: [PerlChina] =?gb2312?b?cHVnc7Hg0uu07c7z?= Message-ID: ubuntu 7.10����������askell 6.8.2��erl5.10����svn��gs��� ����ʹ�~/perl-5.10/bin/perl MakeFile.PL��Ȼ�ake���ʾ�o�����thrid-party���Ďׂ������n�ʾ�������������HsSyc��hsregex���make��������`�����ʹ� sudo make������pugs�r���ʾ�� [ 28 of 109] Compiling Pugs.Embed.Parrot ( dist/build/Pugs/Embed/Parrot.hs, dist/build/Pugs/Embed/Parrot.o ) /tmp/ghc21739_0/ghc21739_0.hc:13:46: ���� dist/build/Pugs/Embed/Parrot_hsc.h��No such file or directory Build failed for '/home/march/pugs/dist/build/libHSPugs-6.2.13.a': 256 at util/build_pugs.pl line 372. make: *** [pugs] �� 2 �������״Σ��`�������@������pugsԴ�aĿ��Ǵ��ģ�������ĕr�����iĿ䛲����� -- ���֮������������� ���� ��arch.Liu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/china-pm/attachments/20080225/63c80f11/attachment.html From shijialee at gmail.com Mon Feb 25 20:50:07 2008 From: shijialee at gmail.com (Qiang ( James ) Li) Date: Mon, 25 Feb 2008 23:50:07 -0500 Subject: [PerlChina] =?gb2312?b?cHVnc7Hg0uu07c7z?= In-Reply-To: References: Message-ID: <47C39A7F.8000801@gmail.com> sorry, ��Ļش������, �����������. ���˽���� ��û�ʲô��������� Perl 6 on Parrot (��� rakudo) ����. ��pugs һ�, Rakudo perl Ҳ���ʵ� perl 6 �� ��ͬ ������ parrot ��. Դ�� http://svn.perl.org/parrot/trunk/languages/perl6/ �Ŀ����: http://use.perl.org/~pmichaud/journal/ ��perl 6 �������������. Qiang ��rote: > ubuntu 7.10����������askell 6.8.2��erl5.10����svn��gs��� > ����ʹ�~/perl-5.10/bin/perl MakeFile.PL��Ȼ�ake���ʾ�o�����thrid- > party���Ďׂ������n�ʾ�������������HsSyc��hsregex���make > ��������`�����ʹ� sudo make������pugs�r���ʾ�� > > [ 28 of 109] Compiling Pugs.Embed.Parrot ( > dist/build/Pugs/Embed/Parrot.hs, dist/build/Pugs/Embed/Parrot.o ) > > /tmp/ghc21739_0/ghc21739_0.hc:13:46: > ���� dist/build/Pugs/Embed/Parrot_hsc.h��No such file or directory > Build failed for '/home/march/pugs/dist/build/libHSPugs-6.2.13.a': 256 > at util/build_pugs.pl line 372. > make: *** [pugs] �� 2 > > �������״Σ��`�������@������pugsԴ�aĿ��Ǵ��ģ������ > �ĕr�����iĿ䛲����� > > -- > ���֮������������� > > ���� > > �� March.Liu > > > ------------------------------------------------------------------------ > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm From march.liu at gmail.com Mon Feb 25 21:00:37 2008 From: march.liu at gmail.com (=?GB2312?B?wfX2zg==?=) Date: Tue, 26 Feb 2008 13:00:37 +0800 Subject: [PerlChina] =?gb2312?b?cHVnc7Hg0uu07c7z?= In-Reply-To: <47C39A7F.8000801@gmail.com> References: <47C39A7F.8000801@gmail.com> Message-ID: parrotĿǰ�����ǰ��섂�әһ��������VN�汾��ֻ���֮ǰ�����gs������ll��Ŀǰ�������� ���PugsĿǰ�Ȼ����l��ÿ�SVN�����������Ĵ�������������������.2.13���ֱ�]�һ�������档 �08-2-26��Qiang ( James ) Li д��� > > sorry, ��Ļش������, �����������. > > ���˽���� ��û�ʲô��������� Perl 6 on Parrot (��� > rakudo) ����. ��pugs һ�, Rakudo perl Ҳ���ʵ� perl 6 �� ��ͬ > ������ parrot ��. > > Դ�� > http://svn.perl.org/parrot/trunk/languages/perl6/ > > �Ŀ����: > http://use.perl.org/~pmichaud/journal/ > > ��perl 6 �������������. > > Qiang > > > > ��rote: > > ubuntu 7.10����������askell 6.8.2��erl5.10����svn��gs��� > > ����ʹ�~/perl-5.10/bin/perl MakeFile.PL��Ȼ�ake���ʾ�o�����thrid- > > party���Ďׂ������n�ʾ�������������HsSyc��hsregex���make > > ��������`�����ʹ� sudo make������pugs�r���ʾ�� > > > > [ 28 of 109] Compiling Pugs.Embed.Parrot ( > > dist/build/Pugs/Embed/Parrot.hs, dist/build/Pugs/Embed/Parrot.o ) > > > > /tmp/ghc21739_0/ghc21739_0.hc:13:46: > > ���� dist/build/Pugs/Embed/Parrot_hsc.h��No such file or directory > > Build failed for '/home/march/pugs/dist/build/libHSPugs-6.2.13.a': 256 > > at util/build_pugs.pl line 372. > > make: *** [pugs] �� 2 > > > > �������״Σ��`�������@������pugsԴ�aĿ��Ǵ��ģ������ > > �ĕr�����iĿ䛲����� > > > > -- > > ���֮������������� > > > > ���� > > > > �� > March.Liu > > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > 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 > -- ���֮������������� ���� ��arch.Liu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/china-pm/attachments/20080226/281533ed/attachment.html From march.liu at gmail.com Tue Feb 26 06:34:44 2008 From: march.liu at gmail.com (=?GB2312?B?wfX2zg==?=) Date: Tue, 26 Feb 2008 22:34:44 +0800 Subject: [PerlChina] =?GB2312?B?UGFycm9ysGyyvDAuNS4z?= Message-ID: � http://www.parrot.org���朽Ӻ͸��Ұ��ԇ��һ�������������perl6����������]���pugs�ij̶ȣ��Lԇһ��helloworld���e��/O�����ͬ�ӵij��ugs��������������ij�������core dump������oՓ��Σ���perl6������ǰ����������erl6�l�������� -- ���֮������������� ���� ��arch.Liu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/china-pm/attachments/20080226/2d4653c6/attachment.html From march.liu at gmail.com Tue Feb 26 06:39:20 2008 From: march.liu at gmail.com (=?GB2312?B?wfX2zg==?=) Date: Tue, 26 Feb 2008 22:39:20 +0800 Subject: [PerlChina] =?GB2312?B?UmU6IFBhcnJvcrBssrwwLjUuMw==?= In-Reply-To: References: Message-ID: �q�����ǣ�make reallyinstall ��ϵ�y���parrot��������Ҫ��_����ֻ�����Ŀ��á���� pbc_to_exe ߀�����������ĕr���Ǯ�ǰ���·����pwd�����������bc���Ŀ�¡� �08-2-26����march.liu at gmail.com> д��� > > � http://www.parrot.org���朽Ӻ͸��Ұ��ԇ��һ�������������perl6����������]���pugs�ij̶ȣ��Lԇһ��helloworld���e��/O�����ͬ�ӵij��ugs��������������ij�������core > dump������oՓ��Σ���perl6������ǰ����������erl6�l��������> > -- > ���֮������������� > > ���� > > �� March.Liu -- ���֮������������� ���� ��arch.Liu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/china-pm/attachments/20080226/0907bec9/attachment.html From zhuzhu at perlchina.org Thu Feb 28 17:24:37 2008 From: zhuzhu at perlchina.org (=?GB2312?B?1uzW6Q==?=) Date: Fri, 29 Feb 2008 09:24:37 +0800 Subject: [PerlChina] Fwd: Try the new Jotspot, Google Sites In-Reply-To: <20080228175121.28941.qmail@cg-out-0102.google.com> References: <20080228175121.28941.qmail@cg-out-0102.google.com> Message-ID: <20b2921e0802281724h1161534ej5d5bc4516d58b6a7@mail.gmail.com> Let us try? ---------- Forwarded message ---------- From: The Google Apps Team Date: 28 Feb 2008 17:51:21 -0000 Subject: Try the new Jotspot, Google Sites To: zhuzhu at perlchina.org Greetings! We're contacting everyone who's expressed interest in learning of JotSpot registration re-openings on the JotSpot website. And today, we're excited to announce that JotSpot is working on Google infrastructure and has been re-launched as Google Sites. Google Sites is the latest offering from Google Apps, a suite of products designed to improve communication and collaboration amongst employees, students, and groups. Google Sites makes creating a team web site as easy as editing a document. You can quickly gather a variety of information in one place -- including videos, calendars, presentations, attachments, and gadgets -- and easily share it for viewing or editing with a small group, their entire organization, or the world. To get started with Google Sites, you'll first need to sign up for the Google Apps edition that's right for you (if you're not already a Google Apps user). Start the sign-up process at: http://sites.google.com Sincerely, The Google Apps Team Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/china-pm/attachments/20080229/1243aa0b/attachment.html From fayland at gmail.com Thu Feb 28 17:35:00 2008 From: fayland at gmail.com (Fayland Lam) Date: Fri, 29 Feb 2008 09:35:00 +0800 Subject: [PerlChina] Fwd: Try the new Jotspot, Google Sites In-Reply-To: <20b2921e0802281724h1161534ej5d5bc4516d58b6a7@mail.gmail.com> References: <20080228175121.28941.qmail@cg-out-0102.google.com> <20b2921e0802281724h1161534ej5d5bc4516d58b6a7@mail.gmail.com> Message-ID: <47C76144.4020306@gmail.com> 朱珠 wrote: > Let us try? sounds nice. for China-pm? > > ---------- Forwarded message ---------- > From: *The Google Apps Team* > > Date: 28 Feb 2008 17:51:21 -0000 > Subject: Try the new Jotspot, Google Sites > To: zhuzhu at perlchina.org > > Greetings! > > We're contacting everyone who's expressed interest in learning of > JotSpot registration re-openings on the JotSpot website. And > today, we're excited to announce that JotSpot is working on Google > infrastructure and has been re-launched as Google Sites. > > Google Sites is the latest offering from Google Apps, a suite of > products designed to improve communication and collaboration > amongst employees, students, and groups. Google Sites makes > creating a team web site as easy as editing a document. You can > quickly gather a variety of information in one place -- including > videos, calendars, presentations, attachments, and gadgets -- and > easily share it for viewing or editing with a small group, their > entire organization, or the world. > > To get started with Google Sites, you'll first need to sign up for > the Google Apps edition that's right for you (if you're not > already a Google Apps user). Start the sign-up process at: > > http://sites.google.com > > Sincerely, > > > The Google Apps Team > Google Inc. > 1600 Amphitheatre Parkway > Mountain View, CA 94043 > ------------------------------------------------------------------------ > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm -- Fayland Lam // http://www.fayland.org/ Foorum based on Catalyst // http://www.foorumbbs.com/ From bruce1914 at gmail.com Fri Feb 29 06:07:28 2008 From: bruce1914 at gmail.com (Bruce Cheng) Date: Fri, 29 Feb 2008 22:07:28 +0800 Subject: [PerlChina] =?utf-8?b?562U5aSNOiAgRndkOiBUcnkgdGhlIG5ldyBKb3Rz?= =?utf-8?q?pot=2C_Google_Sites?= In-Reply-To: <47C76144.4020306@gmail.com> References: <20080228175121.28941.qmail@cg-out-0102.google.com> <20b2921e0802281724h1161534ej5d5bc4516d58b6a7@mail.gmail.com> <47C76144.4020306@gmail.com> Message-ID: <000601c87adc$6ef89dc0$4ce9d940$@com> Agree -----邮件原件----- 发件人: china-pm-bounces+bruce1914=gmail.com at pm.org [mailto:china-pm-bounces+bruce1914=gmail.com at pm.org] 代表 Fayland Lam 发送时间: 2008年2月29日 9:35 收件人: china-pm at pm.org 主题: Re: [PerlChina] Fwd: Try the new Jotspot, Google Sites 朱珠 wrote: > Let us try? sounds nice. for China-pm? > > ---------- Forwarded message ---------- > From: *The Google Apps Team* > > Date: 28 Feb 2008 17:51:21 -0000 > Subject: Try the new Jotspot, Google Sites > To: zhuzhu at perlchina.org > > Greetings! > > We're contacting everyone who's expressed interest in learning of > JotSpot registration re-openings on the JotSpot website. And > today, we're excited to announce that JotSpot is working on Google > infrastructure and has been re-launched as Google Sites. > > Google Sites is the latest offering from Google Apps, a suite of > products designed to improve communication and collaboration > amongst employees, students, and groups. Google Sites makes > creating a team web site as easy as editing a document. You can > quickly gather a variety of information in one place -- including > videos, calendars, presentations, attachments, and gadgets -- and > easily share it for viewing or editing with a small group, their > entire organization, or the world. > > To get started with Google Sites, you'll first need to sign up for > the Google Apps edition that's right for you (if you're not > already a Google Apps user). Start the sign-up process at: > > http://sites.google.com > > Sincerely, > > > The Google Apps Team > Google Inc. > 1600 Amphitheatre Parkway > Mountain View, CA 94043 > ------------------------------------------------------------------------ > > _______________________________________________ > China-pm mailing list > China-pm at pm.org > http://mail.pm.org/mailman/listinfo/china-pm -- Fayland Lam // http://www.fayland.org/ Foorum based on Catalyst // http://www.foorumbbs.com/ _______________________________________________ China-pm mailing list China-pm at pm.org http://mail.pm.org/mailman/listinfo/china-pm From fayland at gmail.com Fri Feb 29 07:52:09 2008 From: fayland at gmail.com (Fayland Lam) Date: Fri, 29 Feb 2008 23:52:09 +0800 Subject: [PerlChina] =?utf-8?b?562U5aSNOiAgRndkOiBUcnkgdGhlIG5ldyBKb3Rz?= =?utf-8?q?pot=2C_Google_Sites?= In-Reply-To: <000601c87adc$6ef89dc0$4ce9d940$@com> References: <20080228175121.28941.qmail@cg-out-0102.google.com> <20b2921e0802281724h1161534ej5d5bc4516d58b6a7@mail.gmail.com> <47C76144.4020306@gmail.com> <000601c87adc$6ef89dc0$4ce9d940$@com> Message-ID: <47C82A29.7010302@gmail.com> I tried. china-pm at pm.org is not acceptable and I don't know which country is acceptable (US, HK and CN are not). hmm Bruce Cheng wrote: > Agree > > -----邮件原件----- > 发件人: china-pm-bounces+bruce1914=gmail.com at pm.org [mailto:china-pm-bounces+bruce1914=gmail.com at pm.org] 代表 Fayland Lam > 发送时间: 2008年2月29日 9:35 > 收件人: china-pm at pm.org > 主题: Re: [PerlChina] Fwd: Try the new Jotspot, Google Sites > > 朱珠 wrote: > >> Let us try? >> > > sounds nice. for China-pm? > > >> ---------- Forwarded message ---------- >> From: *The Google Apps Team* > > >> Date: 28 Feb 2008 17:51:21 -0000 >> Subject: Try the new Jotspot, Google Sites >> To: zhuzhu at perlchina.org >> >> Greetings! >> >> We're contacting everyone who's expressed interest in learning of >> JotSpot registration re-openings on the JotSpot website. And >> today, we're excited to announce that JotSpot is working on Google >> infrastructure and has been re-launched as Google Sites. >> >> Google Sites is the latest offering from Google Apps, a suite of >> products designed to improve communication and collaboration >> amongst employees, students, and groups. Google Sites makes >> creating a team web site as easy as editing a document. You can >> quickly gather a variety of information in one place -- including >> videos, calendars, presentations, attachments, and gadgets -- and >> easily share it for viewing or editing with a small group, their >> entire organization, or the world. >> >> To get started with Google Sites, you'll first need to sign up for >> the Google Apps edition that's right for you (if you're not >> already a Google Apps user). Start the sign-up process at: >> >> http://sites.google.com >> >> Sincerely, >> >> >> The Google Apps Team >> Google Inc. >> 1600 Amphitheatre Parkway >> Mountain View, CA 94043 >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> China-pm mailing list >> China-pm at pm.org >> http://mail.pm.org/mailman/listinfo/china-pm >> > > > -- Fayland Lam // http://www.fayland.org/ Foorum based on Catalyst // http://www.foorumbbs.com/ From yang.liana at gmail.com Fri Feb 29 18:10:32 2008 From: yang.liana at gmail.com (rorot) Date: Sat, 1 Mar 2008 10:10:32 +0800 Subject: [PerlChina] =?gb2312?b?cGVybLXExNq05rncwO3OyszioaM=?= Message-ID: <3aac2b3b0802291810w4190c78ax1d4019b5fcdb24af@mail.gmail.com> 大家好, 我用perl的HTML::DOM 解析约7万个HTML页面内容。结果发现没解析2,000个左右,脚本程序就出现一次崩溃。错误信息为内存占用过多,被操作系统杀死。 我不知道如何去DEBUG一个perl脚本,跟踪到底那部分没有释放内存。但是可以肯定的是我的程序是运行一个sub foo()循环,这个sub里的new Object()都被我调用过object->close(),也就是文档里说的destroy操作。为什么持续运行程序,内存暴涨,从10M一直上升到580MB然后被操作系统杀死。。。 能告诉我如何去调试一个perl程序, 或者直接找出那里出现内存泄露吗? 或者还是perl的内存管理释放内存的时间太慢??? rorot Mar/01/2008 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/china-pm/attachments/20080301/73045c66/attachment.html From truncatei at gmail.com Fri Feb 29 20:32:24 2008 From: truncatei at gmail.com (truncatei) Date: Sat, 1 Mar 2008 12:32:24 +0800 Subject: [PerlChina] =?utf-8?b?cGVybOeahOWGheWtmOeuoeeQhumXrumimOOAgg==?= In-Reply-To: <3aac2b3b0802291810w4190c78ax1d4019b5fcdb24af@mail.gmail.com> References: <3aac2b3b0802291810w4190c78ax1d4019b5fcdb24af@mail.gmail.com> Message-ID: 是不是有其它变量占着内存?比如用全局数组或者Hash保存着解析HTML后需要留存的结果。 2008/3/1 rorot : > 大家好, > > 我用perl的HTML::DOM > 解析约7万个HTML页面内容。结果发现没解析2,000个左右,脚本程序就出现一次崩溃。错误信息为内存占用过多,被操作系统杀死。 > > 我不知道如何去DEBUG一个perl脚本,跟踪到底那部分没有释放内存。但是可以肯定的是我的程序是运行一个sub > foo()循环,这个sub里的new > Object()都被我调用过object->close(),也就是文档里说的destroy操作。为什么持续运行程序,内存暴涨,从10M一直上升到580MB然后被操作系统杀死。。。 > > 能告诉我如何去调试一个perl程序, 或者直接找出那里出现内存泄露吗? 或者还是perl的内存管理释放内存的时间太慢??? > > rorot > Mar/01/2008 > > > _______________________________________________ > 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/20080301/6376b086/attachment.html