If you want to compare programming languages, I can recommend the following links:
- literateprograms.org,
- Rosetta Code,
- 99-bottles-of-beer.net,
- Comparison of programming languages (basic instructions),
- Comparison of programming languages
In particular, I like the following pages:
- Fibonacci numbers (literateprograms, rosettacode)
- Hello World (literateprograms, rosettacode)
If you want to learn a new language you can look at the implementation of one problem and learn how the new language can be used.