Just another Perl shrine | |
PerlMonks |
given == for?by b4swine (Pilgrim) |
on Jul 22, 2010 at 11:52 UTC ( [id://850833]=perlquestion: print w/replies, xml ) | Need Help?? |
b4swine has asked for the wisdom of the Perl Monks concerning the following question:
Is there any difference at all between given(...) and foreach(...) in 5.010? Or is it there just so that we slowly get more comfortable with Perl 6 syntax?
OOPS: Now I understand. given(...) considers a list as an array reference, and never loops. Is that right?
Back to
Seekers of Perl Wisdom
|
|