The current version of Xcode is 4.3.3; however, I doubt that's the issue. Given that you have a
in your PATH, I suspect that Commanf Line Tools is not the issue either. Did you happen to look at the logs after the failed installs to see what the error was? Do you remember whether you installed perlbrew and cpanm in your home directory as per