Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: encoding URL ampersands?

by almut (Canon)
on Jul 29, 2010 at 19:49 UTC ( [id://851999] : note . print w/replies, xml ) Need Help??


in reply to encoding URL ampersands?

You probably meant

my $url_parm = 'http://www.whatzit.com?a=1&b=2'; $url_parm =~ s/&/&/sg; my $url = "http:/www.xyzzy.com?url=$url_parm";