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
In reply to Replacing with a variable in while loop by tekio
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |