| > Not at all [can one use CPAN] You are mistaken. See my nearby comment about Inline::Perl5. > not without major contortions [can one convert]. One doesn't need to convert (due to Inline::Perl5). That said there can be valid reasons (eg having fun and learning Perl 6) to want to convert existing Perl 5 code to a Perl 6 equivalent anyway. While some partial P5-to-P6 conversion tools already exist[1] (and I'd be surprised if more don't arrive in the future[2]), conversion of a well written Perl 5 module in to a well written Perl 6 module is mostly a manual exercise.[3] > even basic tasks like defining a function are not the same. sub foo ($foo, @bar) {
my $qux;
# do something
return $qux
}
This is the same in both languages.Could you provide some code to illustrate what you mean? --- [1] http://www.perlito.org/perlito/perlito5to6.html Incomplete but better than nothing. [2] https://github.com/rakudo-p5/v5/ is a project to create a Perl 5 compiler written in Perl 6. It parses Perl 5 code and spits out Perl 6 ASTs. It's obviously not a huge jump for it to spit out straight Perl 6 code. One day... [3] http://jnthn.github.io/css-tiny-presentation/presentation/#/ |