Re: url_encode for LWP POST

2013-07-25 Thread Feng He
Now I got it, from lwpcook it's this way: Lazy people use the HTTP::Request::Common module to set up a suitable POST request message (it handles all the escaping issues) and has a suitable default for the content_type: use HTTP::Request::Common qw(POST); use LWP::UserAgent; $ua = LWP::U

Re: url_encode for LWP POST

2013-07-25 Thread Feng He
Do you mean HTTP::Request::Common will do the url_encode stuff automatically? Thanks Charles. On 2013-7-25 18:30, Charles DeRykus wrote: On 7/25/2013 12:57 AM, Feng He wrote: Would LWP::UserAgent call the url_encode() method from URL::Encode automatically for the posted content? use LWP

url_encode for LWP POST

2013-07-25 Thread Feng He
Hi Would LWP::UserAgent call the url_encode() method from URL::Encode automatically for the posted content? use LWP::UserAgent; $ua = LWP::UserAgent->new; my $req = HTTP::Request->new( POST => 'http://rt.cpan.org/Public/Dist/Display.html'); $req->content_type('application/x-www

Re: SSH connection to different network devices

2013-07-15 Thread Feng He
On 2013-7-15 18:42, Dr.Ruud wrote: I need some advice which library or module to use for multiple connection to network devices. For example change status of ports on the hundred switches. Also check out 'ansible'. ansible is python's. I suggest this perl one which is quite nice: http://rexif

Re: Social network map

2013-07-15 Thread Feng He
On 2013-7-15 19:30, htchd...@live.com wrote: How to draw a social network map in Perl? what's a social network map? I have been using RRDtool for graphing you may take a look: http://oss.oetiker.ch/rrdtool/ Regards. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional com

Re: Hi

2013-01-10 Thread Feng He
于 2013-1-11 7:57, Shawn H Corey 写道: On Thu, 10 Jan 2013 18:36:07 -0500 "Lou Pereira" wrote: I beg to differ regarding your comment. I have been trying to be removed from this list for over a year to no avail. So, all knowledge one, how do we remove ourselves from this mail list? Send a ema

Re: What is the difference between () and [] syntax for array?

2013-01-07 Thread Feng He
于 2013-1-8 9:33, Neo Anderson 写道: > I think there are two ways to declare an array: > my @a1 = (1, 2, 3);my @a2 = [1, 2, 3]; > What is the difference? The first is an array. The second is a reference to the array. And you should define the second with: my $a2 = [1,2,3]; $a2 is a scalar not an arra

Re: about ORM

2012-12-30 Thread Feng He
Thanks for letting me know these, Shlomi. 30.12.2012, 15:05, "Shlomi Fish" : > Hi Feng, > > On Sun, 30 Dec 2012 10:14:03 +0800 > Feng He wrote: > >>  Hello, >> >>  I have a question that, what's the advantage of using an ORM instead of the >&g

about ORM

2012-12-29 Thread Feng He
Hello, I have a question that, what's the advantage of using an ORM instead of the traditional DBI? And what's better for DBIx::Class and Class::DBI? Thanks. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org

Re: Help with a regex

2012-12-22 Thread Feng He
> > You probably had $string double quoted instead of > single quoted which later results in the \ being eaten. > Thank you. The people who said the problem of double quoted string are correct, I didn't know this item before. This is what I really want: use strict; my $email1 = restore_email

Help with a regex

2012-12-20 Thread Feng He
Hello, I have a string like: dns\.support.dnsbed.com I want to translate it to a regular email address: dns.supp...@dnsbed.com if ($string =~ /^(.*?)(?http://learn.perl.org/

Re: Problem of general running of simple perl program.

2012-11-04 Thread Feng He
Seems this one: http://search.cpan.org/~rjbs/Email-MIME-1.911/lib/Email/MIME.pm 于 2012-11-5 11:22, hong zeng 写道: Where should I write this module and how? On Sun, Nov 4, 2012 at 10:10 PM, Feng He wrote: >You have lost the module named as Email::MIME. > -- To unsubscribe,

Re: Problem of general running of simple perl program.

2012-11-04 Thread Feng He
You have lost the module named as Email::MIME. 于 2012-11-5 11:01, hong zeng 写道: Hi, When I run the send_email example on the website, I got some warning like this...I am really a beginner so I don't know where to find the answer so I post here. Thank you guys. ece% perl ./perl_test/send_emai

Re: Can't call method error

2011-08-12 Thread Feng He
You will always be able to check the return status of a method call, something like: my $obj = Some::Module->new or die "can't create object from Some::Module"; Regards. On Sat, Aug 13, 2011 at 7:58 AM, Jeffrey Joh wrote: > > I'd like to include code so that if I get the following error

Re: how to use jks encrypt in perl webservice

2011-08-08 Thread Feng He
Have you tried SOAP::Lite? 2011/8/8 王璟 : > My service is published by J2EE , it's use SOAP and RSA jks encrypt > (serverStore.jks  and clientStore.jks). > > I need to use PERL to invoke the webservice . > -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail:

Re: install the prerequisite module automatically

2011-08-05 Thread Feng He
On Fri, Aug 5, 2011 at 4:36 PM, Dermot wrote: > If the Makefile.PL for you module has "requires MIME::Lite" in then > the end user will get a warning about the lack of a dependency. You > can not force the required modules to install on an end user's > machine. That will be down to how the end us

install the prerequisite module automatically

2011-08-04 Thread Feng He
Hi, I have wrote a module and released it with module-starter. (http://search.cpan.org/~xsawyerx/Module-Starter-1.58/lib/Module/Starter.pm) When I install it from the CPAN shell, how can I make the shell install the prerequisite modules automatically? for example, my module: package ABC; use MI

Re: is there //= operator?

2011-08-02 Thread Feng He
Ubuntu 10.04 is Perl 5.10, which has this operator avaiable. On Wed, Aug 3, 2011 at 1:59 PM, shawn wilson wrote: > On Aug 3, 2011 12:40 AM, "Brian Fraser" wrote: >> >> On Wed, Aug 3, 2011 at 2:32 AM, terry peng wrote: >> >> > I have forgot that, is there a //= operator in Perl? >> > which shou

Re: perl's -M

2011-07-22 Thread Feng He
Thank you all for the kind info. On Fri, Jul 22, 2011 at 4:57 PM, Shlomi Fish wrote: > Hi Feng, > > On Fri, 22 Jul 2011 16:47:09 +0800 > Feng He wrote: > >> What's the meaning of Perl's "-M" operator? >> which perldoc document is it get descripte

perl's -M

2011-07-22 Thread Feng He
What's the meaning of Perl's "-M" operator? which perldoc document is it get descripted in? Thanks. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: XML suggestions

2011-07-12 Thread Feng He
2011/7/13 Doug Bradbury : > Does anyone have suggestions for an active and easy to use XML building & > parsing module? > For a simple XML parsing I have used the module XML::Simple which just run well. Regards. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands,

Re: hiii

2011-07-09 Thread Feng He
2011/7/9 Narasimha Madineedi : > hi all, > any net::ftp commands to get latest file from the directory. > won't "ls -ltr" sort the files by date? -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/