<div dir="ltr"><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><div style="font-family: courier new,monospace;" class="gmail_quote">On Fri, Aug 1, 2008 at 10:50 AM, Madison Kelly <span dir="ltr"><<a href="mailto:linux@alteeve.com">linux@alteeve.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> As an expansion to my earlier question on assigning values to new variables directly from a regular expression; I want to now use a similar technique to populate a 'foreach' loop.</blockquote>
<div><br><br></div><div>... snip ...<br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">However, this doesn't:<br>
<br>
my $results_page=$agent->content;<br>
my %results=();<br>
foreach (my $variable, my $value) ($results_page=~/<input name="(.*?)" type="hidden" value="(.*?)">/gs)<br></blockquote><div> ^^<br><br>How about... you forgot the equal sign for the assignment!<br>
<br><br> </div></div></div>