http://qs1969.pair.com?node_id=403420


in reply to Foreach in a 2D array

I have two suggestions - one answers your question and the other makes it easier to read that print statement.

  1. foreach $option (@{$dataoptions{$columns[$i]}})
    This dereferences your array - it is just a way to do it without having to save it to another variable first.
  2. print qq(<input type="radio" name="$columns[$i]" value="$option">$opti +on);
    This makes it easier to read the HTML tag.