I used
to convert the '&' to hexadecimal characters following the '%'
character, and then translate it back using hex() function.
Something like this:
$value
=~ s/%([\d0-9A-Fa-f][\dA-Fa-f])/pack ("C", hex($1))/eg;
-----Original Message-----
From: Arijit Banik [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 09, 2005 7:58 AM
To: [EMAIL PROTECTED]
Cc: [email protected]
Subject: parsing char '&' in URLHi,I am having the following issue in my project.Basically we have a perl based application in which we pass value from one page to another using URL.In any page we fetch the value of a particular parameter using Q Param.Now the problem is that 2 values are separated using an ampersand in URL, so if the value of a particular parameter has ampersand in it ( for eg value = abc&def ) then it gets truncated and the value fetched is not proper( for the above example we will only get value = abc).This behaviour is undesired and i need to extract the complete value(value = abc&def).In case if any of you have worked on such an issue, please let me know the approach taken.Thanks,Arijit BanikMobile:+91-9880382686 extn: 67200CISCO-HTDM

