On Mon, May 30, 2011 at 08:48:44PM -0400, John M Rathbun MD wrote:
>    print scrolling_list(-name => 'choose',-values=>@terms,-size=>254);

scrolling_list wants a reference for the value list:
    print scrolling_list(-name => 'choose',-values=>\@terms,-size=>254);

This should do what you want, when you use '@terms' the array gets
expanded to the list of items in the array, the backslash causes a
reference to the array to be passed instead.  The relevant
documentation is perlref
<http://perldoc.perl.org/perlref.html#Making-References>.


-- 
Michael
mich...@thegrebs.com
M: +1-562-MIKEGRB

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to