in reply to Re: Ksh
in thread Ksh style select menus in perl

As a matter of fact, you're only missing one thing -- the whole point! The foreach loop loads each list element into $varname. In contrast, the select loop interactively asks the user which element should be loaded for the next iteration! As you can see, these are totally different in behavior, despite the only visible difference being the change from the keyword foreach to select.

Tim Maher
tim@teachmeperl.com