in reply to Re: Array slice vs foreach and push
in thread Array slice vs foreach and push
my @up_chars = map { tr/a-z/A-Z/; $_ } @chars; can be reduced to: my @up_chars = map uc, @chars;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Array slice vs foreach and push
by vinian (Beadle) on Nov 11, 2011 at 14:53 UTC |