in reply to Popup Question
That last statement, -labels=>\@dir=>\@users is probably being interpreted by perl as setting the anonymous hash defined by key \@dir, value \@users, and using that as the arguement to -labels, which is expecting an array. I think that "\@dir=>" is unnecessary in your case and can be removed.print $query->popup_menu(-name=>'directory', -values=>\@dir, -labels=>\@dir=>\@users);
Also, you don't need to read through the database twice. You can fill both @users and @dir in the same pass through the DB.
|
|---|