Sun's compilers install in
/opt by default, so there's no reason that you couldn't have both (sun cc and gcc) working on the same machine. But if you're only using the compiler for CPAN modules, then it is a huge waste of money.
BlueLines
Disclaimer:
This post may contain inaccurate information, be habit forming, cause atomic warfare between peaceful countries, speed up male pattern baldness, interfere with your cable reception, exile you from certain third world countries, ruin your marriage, and generally spoil your day. No batteries included, no strings attached, your mileage may vary.