Famous Perl One-Liners Explained, Part II: Line Numbering
catonmat.net
catonmat.net
Edit: And of course, since this same site has awesome examples of sed and awk one-liners in action, the comparison has never been easier to make.
They could write highly maintainable, well tested, peer reviewed etc code to do the same things, but in this context that would be hugely wasteful, as the utilities already exist.
This is Perl as a replacement for Awk, not for Java.
Being able to create that line-noise is, in most cases, significantly more useful than taking 3 months to create a perfectly engineered recursive phone-number finding program.
It's possible you're actually not aware, so take this in the spirit it's intended: statements like this make you sound like a colossal blow-hard.