say for sub { map { "\U$_" } @_ } ->(qw( abc def ghi )); # ABC # DEF # GHI
versus
say for sub { map { return "\U$_" } @_ } ->(qw( abc def ghi )); # ABC
and even
say for map { return "\U$_" } qw( abc def ghi ); # Can't return outside a subroutine at -e line 1. # [255]
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
In reply to Re^4: Extracting elements from array
by choroba
in thread Extracting elements from array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |