tekio has asked for the wisdom of the Perl Monks concerning the following question:
The problem I'm having (well, besides being new to Perl.) Is it only updates to the first instance of $var in the loop. Basically it is setting a POST parameter in the URL to something from a text file. ie:while($var = <VAR>){ chomp($_); #change token in url query string to $var $urlChop[1] =~ s/MATCH/$_/;
http://someurl.com/some.php?id=1337&product=$var
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Replacing with a variable in while loop
by wind (Priest) on May 01, 2011 at 00:56 UTC | |
|
Re: Replacing with a variable in while loop
by cdarke (Prior) on May 01, 2011 at 06:41 UTC | |
by tekio (Novice) on May 02, 2011 at 00:43 UTC | |
|
Re: Replacing with a variable in while loop
by Mr. Muskrat (Canon) on May 02, 2011 at 20:38 UTC |