Re: form POST string parser

2011-09-07 Thread Rob Dixon
On 07/09/2011 01:15, Rajeev Prasad wrote: which of the two is better? thx. $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg; or $value =~ s/%(..)/chr(hex($1))/ge; in both cases if the input string has \ in it, it is being converted to \\ i read... chr = function is used to conve

Re: form POST string parser

2011-09-07 Thread Rajeev Prasad
Uri,   thx. I like that suggestion, i totally missed that earlier. I will explore cgi module.     From: Uri Guttman To: Rajeev Prasad Cc: Perl Beginners Sent: Tuesday, September 6, 2011 7:24 PM Subject: Re: form POST string parser > "RP" == Rajeev Prasad writes:   RP> hi,   RP>     RP>

Re: Clarification on the use of "my"

2011-09-07 Thread Rob Dixon
On 05/09/2011 21:26, Uri Guttman wrote: off list rob, No. This order of nastiness cannot be done in private. Your words are crude and brutal, and backed by no one here. ON list. what is with your attitude recently? you had that blowup a few months ago. are you doing that again? i really

Re: Clarification on the use of "my"

2011-09-07 Thread Uri Guttman
> "RD" == Rob Dixon writes: RD> On 05/09/2011 21:26, Uri Guttman wrote: >> >> off list >> >> rob, RD> No. This order of nastiness cannot be done in private. Your words are RD> crude and brutal, and backed by no one here. RD> ON list. >> what is with your attitude recent

Re: Assigning to Substr

2011-09-07 Thread Rob Dixon
On 06/09/2011 13:04, Emeka wrote: Could someone explain what Perl does behind here? Assign to Substring.. substr($string, 0 , 5) = 'Greetings'; What do you want to know Emeka? There is no copy of the 'old' string, and substr behaves as documented. I have the C code of substr in front of me,

Re: Assigning to Substr

2011-09-07 Thread Emeka
Rob, I want to check out the C code. Kindly mail it to my box. Have a great day! Emeka On Wed, Sep 7, 2011 at 8:00 PM, Rob Dixon wrote: > On 06/09/2011 13:04, Emeka wrote: > >> >> Could someone explain what Perl does behind here? >> >> Assign to Substring.. >> substr($string, 0 , 5) = 'Greetin

Re: Assigning to Substr

2011-09-07 Thread Emeka
Rob, Which C file should check out? Emeka On Wed, Sep 7, 2011 at 8:08 PM, Emeka wrote: > Rob, > > I want to check out the C code. Kindly mail it to my box. > Have a great day! > > Emeka > > > On Wed, Sep 7, 2011 at 8:00 PM, Rob Dixon wrote: > >> On 06/09/2011 13:04, Emeka wrote: >> >>> >>> Co

Re: form POST string parser

2011-09-07 Thread Rajeev Prasad
how good is: http://search.cpan.org/~zenin/CGI-Validate-2.000/Validate.pm   which is the best module for validating form data?   can i have some pointers to some good examples please?     From: Rajeev Prasad To: Cc: Perl Beginners Sent: Wednesday, September 7, 2011 11:34 AM Subject: Re: form PO

Moose

2011-09-07 Thread Klaus Jantzen
Hi, checking CPAN for Moose gives me a list of about 2000 entries related directly or indirectly to Moose. Which of these modules do I have to install so that I can do some plain and simple OO programming. Is there a module that is a "container" for all or at least most of them? Thanks for

Re: Moose

2011-09-07 Thread Jim Gibson
On 9/7/11 Wed Sep 7, 2011 2:46 PM, "Klaus Jantzen" scribbled: > Hi, > > checking CPAN for Moose gives me a list of about 2000 entries related > directly or indirectly to Moose. > > Which of these modules do I have to install so that I can do some plain > and simple OO programming. > Is there

Re: Moose

2011-09-07 Thread Shawn H Corey
On 11-09-07 05:46 PM, Klaus Jantzen wrote: Hi, checking CPAN for Moose gives me a list of about 2000 entries related directly or indirectly to Moose. Which of these modules do I have to install so that I can do some plain and simple OO programming. Is there a module that is a "container" for al

Re: Moose

2011-09-07 Thread shawn wilson
On Sep 7, 2011 5:48 PM, "Klaus Jantzen" wrote: > > Hi, > > checking CPAN for Moose gives me a list of about 2000 entries related directly or indirectly to Moose. > > Which of these modules do I have to install so that I can do some plain and simple OO programming. > Is there a module that is a "co

Re: Moose

2011-09-07 Thread Jeff Pang
08 сентября 2011, 01:47 от Klaus Jantzen : > Hi, > > checking CPAN for Moose gives me a list of about 2000 entries related > directly or indirectly to Moose. > > Which of these modules do I have to install so that I can do some plain > and simple OO programming. I have been programming with M

Re: Moose

2011-09-07 Thread Marc
Klaus, > checking CPAN for Moose gives me a list of about 2000 entries related > directly or indirectly to Moose. In case you're interested, there's also a Moose mailing list which would probably be of more help to you with all things Moose. moose-subscr...@perl.org Marc -- To unsubsc

Re: Assigning to Substr

2011-09-07 Thread Shlomi Fish
Hi Emeka, On Wed, 7 Sep 2011 20:49:44 +0100 Emeka wrote: > Rob, > > Which C file should check out? > > Emeka > Please look at the function definition starting from «PP(pp_substr)» in pp.c in the Perl 5 distribution: https://github.com/mirrors/perl/blob/blead/pp.c It seems pretty complicate

Re: form POST string parser

2011-09-07 Thread Shlomi Fish
Hi Rajeev, On Wed, 7 Sep 2011 13:23:44 -0700 (PDT) Rajeev Prasad wrote: > how good is: http://search.cpan.org/~zenin/CGI-Validate-2.000/Validate.pm I never used it. >   > which is the best module for validating form data? >   Well, I don't know about the best module globally , but at a previo