in reply to Passing parameters to a Perl script via an RSS feed

The ampersand (&) is a special character for XML, so you likely need to encode it into the appropriate XML entity:

$link =~ s/&/&/g;

But somewhere down the road, you will encounter other problematic characters in URLs, like <, > and maybe others. So you could use XML::RSS to generate your RSS, or use HTML::Entities to encode all your URLs.

Replies are listed 'Best First'.
Re^2: Passing parameters to a Perl script via an RSS feed
by campbell (Beadle) on Feb 08, 2008 at 16:54 UTC
    Thanks, people, that worked very nicely!