To me, beautiful code is code that is so simple and so clear that it's obviously correct. This code took me too long to understand (realize it has to be read right to left, remember that uc defaults to $_, mentally pass the array from one map to the other...). I'd change it.