Domanda

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                    
 });      
È stato utile?

Soluzione

Try to remove [] and to add \:

-values => [@aArray1], 

To

-values => \@aArray1, 
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top