rapture has asked for the wisdom of the Perl Monks concerning the following question:
Now, I have this array:http://myurl.com/page.pl?key1=va1&key2=val2&key3=val3
For the URL, I want to replace the values with the ones in the array one by one, in other words, I want to reconstruct the URL so that I get the following:@value = ("AAA", "BBB", "CCC", "DDD");
and so on... What's the best way to do it? My Perl data structure is very rusty....http://myurl.com/page.pl?key1=AAA&key2=val2&key3=val3 http://myurl.com/page.pl?key1=val1&key2=AAA&key3=val3 http://myurl.com/page.pl?key1=val1key2=val2&key3=AAA http://myurl.com/page.pl?key1=BBB&key2=val2&key3=val3 http://myurl.com/page.pl?key1=val1&key2=BBB&key3=val3 http://myurl.com/page.pl?key1=val1key2=val2&key3=BBB
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Manipulating URLs
by davorg (Chancellor) on May 15, 2002 at 09:03 UTC | |
|
•Re: Manipulating URLs
by merlyn (Sage) on May 15, 2002 at 14:13 UTC | |
|
Re: Manipulating URLs
by hopes (Friar) on May 15, 2002 at 08:47 UTC |