As many of you know, Pugs now has an examples/cookbook directory. The PLEAC Project is about replicating the Perl Cookbook examples in as many programming languages as possible. Thus, examples/cookbook/ is about translating Perl5 to Perl6. This could be one of the most valuable resources for Perl programmers transitioning to the new language.

If you'd like to help, we can use it. If you have commit access to Pugs (liberally granted, I might add), then commit your own examples. If you don't think the current examples are good, feel free to update them with better examples (think "Subversion as wiki). This should be not only a translation guide, but a set of "best practices" for Perl6.

If you don't have commit access, you can always send me your recipes or simply post them here and I (or someone else) will port them over. If your recipe involves code that is not yet implemented in Pugs, that's OK! We're still happy to add it.

As usual, any thoughts or suggestions you have are welcome.

Update: the name was changed from examples/pleac/ to examples/cookbook/

Cheers,
Ovid

New address of my CGI Course.


In reply to Perl6 Cookbook by Ovid

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.