in reply to Re^3: Should I leave behind beautiful code or readable code?
in thread Should I leave behind beautiful code or readable code?
I might also break this into two, because the in-line makes the uncommon 3rd arg to split harder to pick up when scanning.return map { split(' ', uc $_, 2) } @somearray;
Yes, it's probably slower. I don't care about the odd millisecond if it's easier to read. Some decent variable names would also make a big difference here.my @separated = map { split(' ', $_, 2) } @somearray; @separated = map { uc $_ } @separated;
|
|---|