Re: form POST string parser

2011-09-07 Thread Shlomi Fish
other Catalyst apps that use FormFu. Regards, Shlomi Fish >   >   > > From: Rajeev Prasad > To: > Cc: Perl Beginners > Sent: Wednesday, September 7, 2011 11:34 AM > Subject: Re: form POST string parser > > > Uri, >   > thx. I like that suggest

Re: form POST string parser

2011-09-07 Thread Rajeev Prasad
POST string parser 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" == Raj

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

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-06 Thread Uri Guttman
> "RP" == Rajeev Prasad writes: RP> hi, RP>   RP> which of the two is better? thx. RP>   RP> $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg; RP>   RP> or RP> $value =~ s/%(..)/chr(hex($1))/ge; both are bad because parsing your own http data is a bad thing. it has