<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2015-08-31 17:07 GMT-05:00 Andrew Beverley <span dir="ltr"><<a href="mailto:andy@andybev.com" target="_blank">andy@andybev.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mon, 2015-08-31 at 16:37 -0500, Richard Reina wrote:<br>
[...]<br>
<span>> <td width="550"><% Chlngs.$ID.DESCRIP %></td><br>
> <td><input type="text" name="<% Chlngs.$<a href="http://ID.ID" rel="noreferrer" target="_blank">ID.ID</a> %>"<br>
<br>
</span>So, the name of the input parameter is an ID number.<br>
<span><br>
> However, after getting the template to work I am once again stumped in how<br>
> to capture the value of the dynamically named hash ref<br>
<br>
</span>In which case it will be returned as a scalar using param():<br>
<br>
my $value = param( $key );<br>
<br>
Which will return, for example, "7", if that is what is in the textbox.<br>
<span><br>
> foreach my $key ( keys %$Chlngs ) {<br>
> print "Checking Chlgs: " . $key . " for value.\n";<br>
> if ( param( $key ) ) { # paramter has value<br>
> #$input_hash->{ $key } = $Chlngs->{ $key };<br>
> $input_hash->{ $key } = param( $key );<br>
<br>
</span> ^^ So just capture the value here, but just in a scalar<br>
Is there a reason for using a hash?<br>
<span><br></span></blockquote><div><br></div><div>No, no good reason to be using a hash. Been hammering so much that I
forgot that everything looks like a nail. Thank you for pointing out
that I don't need a hash here. What a relief.</div><div><br></div><div>my $value = param( $key ) is exactly what I needed. Thank you once again. I will someday need to fly to London and buy you several pints! <br><br></div><div>Richard<br></div><br></div><br></div></div>