I quite often use http://pleac.sf.net when I'm stuck, there's some really good examples here - albeit incomplete in many languages. It was originally a Perl cookbook but has been translated into a number of different languages. It's just a shame nobody seems to be updating it further.