Tuesday, September 27, 2011

Golf This!

Here's something for all you programmers out there:

print((@ARGV=map glob,@ARGV)?do{0 while(<>);$.}:0)
  1. Easy: What language is it?
  2. Moderate: What does it do?
  3. Difficult: Can you golf it?  That is, can you write a script that's even shorter but does the same thing?