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
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
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
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
> "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