Because map operates on an alias of each element you don't need to assign the result of the map anywhere:
map {$_= lc} @beatles;
However map in a void context is frowned on so it would be more usual to use for/foreach as a statement modifier:
$_ = lc for @beatles;
In reply to Re^2: tr/// on a list
by GrandFather
in thread tr/// on a list
by shoness
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |