Re[2]: don't understand for a package

2014-05-21 Thread Yonghua Peng
//metacpan.org/source/MIYAGAWA/Starman-0.4009/lib/Plack/Handler/Starman.pm > >The code will not cheat, so be patient. > > > > >On Wed, May 21, 2014 at 7:51 PM, Yonghua Peng < sys...@mail2000.us > wrote: >>Hello members, >> >>I run this command to insta

don't understand for a package

2014-05-21 Thread Yonghua Peng
Hello members, I run this command to install Starman webserver working along with Dancer. $ sudo cpanm Starman This run successfully. Then I take a look at the source of Starman, found it has only 6 lines code: package Starman; use strict; use 5.008_001; our $VERSION = '0.4009'; 1; __END__ (

Re[3]: CPAN unavailable

2014-05-20 Thread Yonghua Peng
Hi Members, I know cpan.org the main site, and metacpan.org work fine. But cpanm works with search.cpan.org, as the info you see in my precious message. So how to make cpanm work with metacpan.org? Thanks.  Wed, 21 May 2014 05:41:19 +0400 from Yonghua Peng : >I probably meant search.cpan.

Re[2]: CPAN unavailable

2014-05-20 Thread Yonghua Peng
4.tar.gz ! Failed to fetch distribution Dancer-1.3124 Thanks.  Wed, 21 May 2014 09:26:42 +0800 from yi lu : >What about  http://mirrors.hust.edu.cn/CPAN/   ? > >It is available to me. > > >On Wed, May 21, 2014 at 9:22 AM, Yonghua Peng < sys...@mail2000.us > wrote: >>

CPAN unavailable

2014-05-20 Thread Yonghua Peng
Hello, Do you know why these days cpan.org has been unavailable? I always got: 503 Service Unavailable No server is available to handle this request. Thanks. 

Re: suppress the warnings output

2014-05-20 Thread Yonghua Peng
catch {     _write_log($_);     return undef; }; if ($success) {     ... } Thanks.  Tue, 20 May 2014 06:20:43 +0400 from Yonghua Peng : >Hello members, > >I wrote the code like below: > >try { >     $dbh = DBI->connect("dbi:mysql:database=$db;host=$host;port=$port"

suppress the warnings output

2014-05-19 Thread Yonghua Peng
Hello members, I wrote the code like below: try {      $dbh = DBI->connect("dbi:mysql:database=$db;host=$host;port=$port", $user, $passwd) or croak $DBI::errstr; } catch {     if ($_) {         write_log($_);         exit 1;     } }; The problem is, when the connection fails, it write the erro

Perl event programming book

2014-03-27 Thread Yonghua Peng
Hello, Is there a book avaiable for Perl event driven programming? I tried searching but got no luck. Thanks.

Re[2]: Where's this documented?

2014-03-19 Thread Yonghua Peng
From perldoc -f stat: If "stat" is passed the special filehandle consisting of an underline, no stat is done, but the current contents of the stat structure from the last "stat", "lstat", or filetest are returned. Example: if (-x $file && (($d) = stat(_)) && $d < 0) { print "$file is executable

Re: CPAN utility

2014-03-18 Thread Yonghua Peng
We have been using cpanm for the automate installation. https://raw.github.com/miyagawa/cpanminus/master/cpanm We are looking for openstack and python developers. Please check: http://www.nsbeta.info/jobs Tue, 18 Mar 2014 13:54:18 +0200 from Yosef Levy : >Hello All, > >Paul said: >

Re: about HTML

2014-03-13 Thread Yonghua Peng
what does it mean "take action on it"? thanks. Looking for openstack and python developers. Please check: http://www.nsbeta.info/jobs Thursday, March 13, 2014 10:33 AM -03:00 from Ariel Hosid : >Hi there! >I am needing a module to parse a HTML page and to take action on it.  >Any idea? > >--

Re: Invoking a script in Windows 7

2014-03-08 Thread Yonghua Peng
You may want to install ActivePerl instead, when installing it changes the windows registry etc. -- looking for cloud developers: http://www.nsbeta.info/jobs Saturday, March 8, 2014 3:29 PM -05:00 from Alek Trishan : >Hi, > >I have installed perl via cygwin on my Windows 7 computer and have

Mogilefs Question

2014-03-06 Thread Yonghua Peng
Hello, Since Mogilefs is written with Perl and I asked the question on the list of Mogilefs but didn't get an answer, so I reposted the question here. What server is suggested for running the front server for mogilefs? Currently we are running Nginx with mogilefs module which has been patched.

RE: udp server

2009-12-01 Thread Yonghua Peng
> Date: Tue, 1 Dec 2009 13:09:08 +0100 > From: rene.schickba...@gmail.com > To: beginners@perl.org > Subject: Re: udp server > > cerr wrote: > > Hi There, > > > > I need a server that's listening on UDP port 5000. > > UDP is quite different from TCP (for example, you don't have a real > conn

Re: Regex to get last 3 digits of a number.

2009-11-24 Thread Yonghua Peng
--- On Tue, 24/11/09, Shawn H Corey wrote: > From: Shawn H Corey > Subject: Re: 答复: Regex to get last 3 digits of a number. > To: "gaochong" > Cc: "'John W. Krahn'" , "'Perl Beginners'" > > Received: Tuesday, 24 November, 2009, 8:26 PM > gaochong wrote: > > But I think substr is better . >