You have to count programming time along with processing time. The latter might be slightly less for C / C++, but the former will be significantly less for Perl. 99% of the time, Perl is going to be the better language to use.
The more complicated question is Perl vs PHP.