At 23.10 6/17/97, Shay Telfer wrote: >Hi... > >Is it possible to get a list of selected items passed back from >MacPerl::pick? It seems to return only one item. > >e.g. >@list = ('Red' , 'Green','Blue'); >@color = MacPerl::Pick("Pick two colours:",@list); I tried: #!perl @list = qw(Red Green Blue); @color = MacPerl::Pick("Pick two colours:",@list); foreach (@color) {print "$_\n"} And it only returned the first item picked in the list. Apparently, you can select more than one value, but only one is returned. Perhaps this can be changed in the next version (unless there is already a way to do it); however, it might break for people expecting a scalar instead of a list. Maybe a new method (PickMultiple/Many) would be in order. -- Chris Nandor pudge@pobox.com http://pudge.net/ %PGPKey=('B76E72AD',[1024,'08 24 09 0B CE 73 CA 10 1F F7 7F 13 81 80 B6 B6']) ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch