my @up_chars = map { tr/a-z/A-Z/; $_ } @chars; can be reduced to: my @up_chars = map uc, @chars;
In reply to Re^2: Array slice vs foreach and push
by jwkrahn
in thread Array slice vs foreach and push
by chrisburel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |