I... know that Perl5 cannot
Actually, Perl5 can, if there is a module for it. Writing such a module requires more than surface-level knowledge and usually involves C (and sometimes also XS), but for well-known libraries there is often one already written and available on the CPAN.
Perl6 (err, Parrot, actually) will hopefully make
the writing of such modules rather easier, and allow
them to be written once (in any language (that targets
Parrot)) and used
many times (in every language (same caveat)), but I have
not closely tracked the progress on that front.