in reply to Re: tr/// on a list
in thread tr/// on a list
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;
|
|---|