Seeing a one line command line solution is most likely not going to be a practical solution to a person needing this type of question answered, they will look at it and think "how do I use that in my script?" Its impressive if you look at my answers then look at that nice and compact answer, but if its only offered to make my code look bad then why bother posting it? Anyone can make my code look bad, that is not an accomplishment.
Kevin
I really don't think that Uri posted his solution to make your code look bad. He posted it as a "better" or "more Perlish" solution to the problem.
Personally, I often deliberately don't post a "cut and paste" solution to a problem. After helping out on far too many of these forums for far too long, I've found that all too often if you give someone a cut and paste solution they'll be back with almost exactly the same question a few days later. If you give them an answer that they need to think about then they're more likely to take it in.
Make a man a fire and he'll by warm for a day.
Teach a man how to make a fire and he'll be warm forever.
Throw a man on a fire and he'll be warm for the rest of his life.