C++ is the best, perl is also good but its kida old, and then java to learn some nice java injections for wesites.
And take a look at this site: http://www.hellboundhackers.org you will have very nice challenges that you can do.