in reply to
Should I leave behind beautiful code or readable code?
Ok, I got the point that the code is not as beautiful as I thought at first, given all those references to "Beauty is in the eye of the beholder." :-)
If somebody else had written my post, I myself would have probably replied along the lines of grinder's post.
I also perfectly agree with BrowserUk. After all, I am supposed to write Perl code and use Perl's features and not to write C code in Perl.
I think I will slightly refactor the code as follows:
return map(split(' ',uc,2),@somearray);
for the hints.
Thanks everybody for your replies.
I love posting my meditations. Reading what others think is enlightening!