jerrygarciuh has asked for the wisdom of the Perl Monks concerning the following question:
_____________________________________________________my %top_align = ( Left => "left", Center => "center", Right => "right", ); while (my ($k, $v) = each %top_align) { if ($image_align_top eq $v) { print qq|<td> <div align="center"> $k <input type="radio" name="image_align_top" +value="$v" checked> </div> </td>|; } else { print qq|<td> <div align="center"> $k <input type="radio" name="image_align_top" +value="$v"> </div> </td>|; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Any Elegant Way to iterate through this hash?
by cLive ;-) (Prior) on Feb 18, 2002 at 00:05 UTC | |
|
Re: Any Elegant Way to iterate through this hash?
by ehdonhon (Curate) on Feb 18, 2002 at 00:15 UTC | |
|
Re: Any Elegant Way to iterate through this hash?
by jerrygarciuh (Curate) on Feb 18, 2002 at 00:10 UTC |