in reply to Problem with query string

Hi, thanks for your replies!

I tried using those modules but it just became to complicated, for such a simple job. It wouldn't resolve the URLs well.

So here's my invention, and it works:

@varsec = split(/\&/,$query); $dirraw = $varsec[0]; $langraw = $varsec[1]; $desraw = $varsec[2]; shift(@varsec); shift(@varsec); shift(@varsec); $wgo = join('&',@varsec); ($dirtag,$dir) = split(/=/,$dirraw); ($langtag,$lang) = split(/=/,$langraw); ($destag,$des) = split(/=/,$desraw); $ptdel = "page="; $ptrep = ""; $wgo =~ s/$ptdel/$ptrep/;


In this way, I'm able to get the full URL without having the amperstands 'eaten' by the perl script. A little brute, but it gets the job done.

Thanks,
Ralph.

Edit kudra, 2002-08-22 Replaced br tags with code tags