On Wed, May 30, 2001 at 12:12:14PM -0700, cathair wrote:

> But when I attempt...<snip>:
> 
> my $j;
> print "<form name="a_form">\n";
> print "<select name="pull_my_finger" size=1>\n";
> 
> for($j = 0; $j <= $#array_name; $j++){
>       print "<option>$array_name[$j]\n";

Is it printing empty <option>s?

Try:

print "<option>${array_name[$j]}\n";

Braces are helpful to make clear to Perl where the variable begins and
ends within quoted strings.

-Micah

Reply via email to