Skip to main content.
home | support | download

Back to List Archive

question about the sample cgi program

From: Aaron Bazar <aaronb(at)>
Date: Mon Nov 08 2004 - 14:28:16 GMT

I am using the sample cgi program (the simple one) with the template
toolkit. I need to URL encode one of the data fields in the returned data.
Where in the program can I do this? Basically, I am looking for a place to
run the following on the correct data item:

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


Aaron Bazar
Received on Mon Nov 8 06:28:20 2004