Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
I think the standard answer is that you can continue coding "perl 5" once perl 6 comes out, if you're so inclined. Perl 6 is intended to run perl 5 modules without modification (the keyword "package" indicates the following is perl 5 code, but a file that leads with the new keyword "class" will be interpreted as perl 6 code).

You might want to take a look at the Scott Walker book: Perl 6 Now, which is out from Apress. Essentially this is a book about how to write code immediately in a "perl6ish" style, using the various (varyingly scary) "Perl6" modules out on CPAN. I'm in the middle of reading it right now myself, and I think it's pretty good: lots of vary clear code examples, some fun example projects (e.g. hacking MOD files, the MIDI-plus-samples audio format that was popularized by the Amiga), and so on. Early on there's a lot of comparison of the way you can do things in perl 5 and the way you're expected to do things in perl 6, with some short, well-annotated code examples.

The only downside is that this is clearly a very quickly put together work, and the clarity of the writing itself doesn't always live up to the high standards of the perl books we're used to.


In reply to Re: Basic Perl5 to basic Perl6? by doom
in thread Basic Perl5 to basic Perl6? by ghenry

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



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-04-25 05:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found