We don't bite newbies here... much | |
PerlMonks |
Re: Re: Kshby yumpy (Sexton) |
on Sep 05, 2002 at 18:20 UTC ( [id://195465]=note: print w/replies, xml ) | Need Help?? |
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
In Section
Seekers of Perl Wisdom
|
|