Gossamer Forum
Home : General : Perl Programming :

Re: [bartb] cgi-question: html->perl text input

Quote Reply
Re: [bartb] cgi-question: html->perl text input In reply to
There is a shorter solution.
Just search for "url decode perl" in Google...


Code:
$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/seg;

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Subject Author Views Date
Thread cgi-question: html->perl text input bartb 9604 Jan 6, 2006, 8:10 AM
Thread Re: [bartb] cgi-question: html->perl text input
webmaster33 9473 Jan 6, 2006, 8:15 AM
Thread Re: [webmaster33] cgi-question: html->perl text input
bartb 9464 Jan 6, 2006, 8:37 AM
Post Re: [bartb] cgi-question: html->perl text input
bartb 9505 Jan 6, 2006, 9:02 AM
Thread Re: [bartb] cgi-question: html->perl text input
webmaster33 9451 Jan 6, 2006, 9:54 AM
Thread Re: [webmaster33] cgi-question: html->perl text input
bartb 9461 Jan 6, 2006, 10:03 AM
Thread Re: [bartb] cgi-question: html->perl text input
webmaster33 9489 Jan 6, 2006, 10:15 AM
Post Re: [webmaster33] cgi-question: html->perl text input
bartb 9475 Jan 6, 2006, 10:22 AM
Thread Re: [webmaster33] cgi-question: html->perl text input
mkp 9397 Feb 26, 2006, 6:41 AM
Thread Re: [mkp] cgi-question: html->perl text input
webmaster33 9385 Feb 26, 2006, 7:33 PM
Thread Re: [webmaster33] cgi-question: html->perl text input
mkp 9358 Feb 26, 2006, 9:19 PM
Post Re: [mkp] cgi-question: html->perl text input
webmaster33 9341 Mar 2, 2006, 3:48 AM