How can I use Perl 5 modules from Perl 6?
问题 Is the a way to use Perl 5 modules from CPAN from Rakudo Perl 6? For example, how can I use the venerable Perl 5 module, CGI, which hasn't been ported yet, in Perl 6. Update: And what this funky code from some early Perl 6 module: use CGI:from<perl5>; Is the :from<perl5> directive used to evoke some kind of a Perl 5 compatibility layer? Can't seem to find any documentation about it. 回答1: Use Inline::Perl5. The following example shows how to use the CPAN hosted Perl 5 module Text::Unidecode (