it'd be nice to have some sort of iteration interface so that we could use for against a collection or generator or iterator or array without having to flatten the values into a list.
Um, neither for my $item ( @array ) { ... } nor ... for @array; flatten?
And for hashes, use ... while (key, value) = each %hash;
In reply to Re^9: use feature 'postderef'; # Postfix Dereference Syntax is coming in 5.20
by BrowserUk
in thread use feature 'postderef'; # Postfix Dereference Syntax is coming in 5.20
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |