intertwingly

It’s just data

Perl vs Python vs Ruby


Taking a look at Ruby (the language), and I find that there are a number of familiar concepts in unfamiliar places.  Following are equivalent snippets in Perl, Python, and Ruby, respectively:

print join(' ',map {uc} @ARGV) . "\n";
print ' '.join(map(string.upper,sys.argv[1:]))
puts ARGV.map{|arg| arg.upcase}.join(' ')