Take a look at the if statement below. I think you want <= not just <
-----Original Message----- From: Mary Anderson [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 29, 2006 11:42 AM To: beginners-cgi@perl.org Subject: perplexing popup problem -- CGI .pm bug? I am having a problem with popup-menus. foreach $rowCount (0..(@rptEntityValuesArray + $MaxNumberRepeats - 1)){ if ($rowCount < @rptEntityValuesArray){ @rptEntityValues = @{$rptEntityValuesArray[$rowCount]}; } Thanks Mary Anderson -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>