in reply to encoding URL ampersands?

P.S.   You can always count on receiving “kindness” here, so when you need help, don’t be afraid to ask.   Perlmonks is a remarkably professional community.   (I think it has something to do with the programming language that we love to use ...)   :-)

Incidentally, you probably want to ask frequently, because another principle of Perl is:   TMTOWTDI = There's More Than One Way To Do It.   Most of the problems that you are likely to need to address using the Perl language have already been solved, and solved very well, in several different ways.   Therefore, you very often find that you spend more time searching for a suitable solution that already exists, and comparatively much less time “cooking something up.”

This happens so frequently, in fact, that if you do find yourself reaching for those ol’ cooking utensils, your first instinct should be to step back and do some surfing ... to this site, and to CPAN.   And as I said, always feel free to ask the community for their professional opinion.   (Think it through well-enough to pose an answerable question, maybe with some alternatives you’ve been considering, and fire away.)

Actume Ne Agas:   Do Not Do A Thing Already Done.