The typical Perl extension may be written in
C or
C++ and dynamically linked into your main perl script, so there's not much you can't do. If you have a library which provides an
API, you can make any component
of it available as just another Perl function
or variable.
You can also go the other direction, and write your main program in
C or
C++, and then link in some Perl code on the fly, to create a very powerful application, indeed.
That said, there will always be small, focused, special-purpose languages dedicated to a specific problem domain that are simply more convenient for certain kinds of problems. Perl tries to be all things to all people, but nothing special to anyone. Examples that come to mind of specialized languages include prolog and matlab.