I need to install several perl modules and for that I need GCC
There's a fair chance that you don't. Most perl modules are available already built into RPMs. Check atrpms and dries repositories before trying to install any perl modules.
If that fails, install CentOS, then install cpan2rpm, then do "cpan2rpm Module::Name".