Frage

my cgi popup menu only selects the first element of the array of values. This is the code for its creation :

$q->popup_menu({ 
-id=> 'id',                       
-name   => 'name',                      
-class  => 'comboClass',                      
-values => [@aArray1],                     
-labels => \%aArray2                    
 });      
War es hilfreich?

Lösung

Try to remove [] and to add \:

-values => [@aArray1], 

To

-values => \@aArray1, 
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top