»»» This post is about the immature Perl 6, not the rock solid Perl 5 «««

The feature this post is about is just a few days old. It doesn't yet destroy P5 objects, there's more marshaling work to do, etc.

Update About one month after nine started this project... A destroy that makes sense in the context of P6 has been implemented. (But note ribasushi's point about a ref-count driven destroy.) Marshaling is done, including marshaling of exceptions. There's support for inheriting from Perl 5 classes in Perl 6. It already covers a lot of P5/P6 interop functionality.

(I'm bringing this project to monks' attention at this very early stage in the hope that at least some of you consider joining the freenode IRC channel #perl6 over the next couple days to encourage P6ers, play with this new P5 interop, ask questions, etc. Here's hoping.)

Stefan Seifert (aka nine or niner) did a lightning talk at YAPC::EU and started the Inline::Perl5 repo 4 days ago.

He's been making rapid progress since then.

Yesterday in #perl6 niner wrote "I can now use Perl 5's DBI in Perl 6 :)".

Update "I'm out of ideas. Now I need some real world usage of Inline::Perl5 to find out what's missing.".

At the time of writing this PM post the repo's readme says:

Module for executing Perl 5 code and accessing Perl 5 modules from Perl 6.

Supports Perl 5 modules including XS modules. Allows passing integers, strings, arrays and hashes between Perl 5 and Perl 6. Also supports calling methods on Perl 5 objects from Perl 6.

Update README now adds "and calling methods on Perl 6 objects from Perl 5."


In reply to "I can now use Perl 5's DBI in Perl 6 :)" by raiph

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.