Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is pretty idiomatic Perl, and I've seen similar constructs countless times at work. You could indent the map body but it normally wouldn't be done for such a short expression. There is not much room for maneuver there if you don't want intermediate variables.

And this is a quick sample, there is much, much hairier stuff to be found in real code. "Knowing the language well" is seen as a virtue for many.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: