Did you find this page useful? If so, the best way you can show appreciation is by using this link for your Amazon shopping.
Powered by MaxBlogPress 
10

Moving From Perl 5 to Perl 6 – What's New, Tutorial Style


Posted by Artem Russakovskii on August 22nd, 2008 in Programming

Updated: August 28th, 2008

10 Responses to “Moving From Perl 5 to Perl 6 – What's New, Tutorial Style”

    9 Comments:
  1. Xaprb says:

    doit(:when, :what('more stuff')); # 'doing more stuff at noon'

    Where did "noon" come from?

  2. Sorry, Baron, wordpress ate my <>. It's corrected now.

  3. Dave Doyle says:

    Agreed. This is an excellent series of posts that really brings the Perl 5 programmer into Perl 6. Heck of a lot easier to understand than the Apocalysis and Egesis stuff.

  4. moritz says:

    > I wonder if there are any Perl 6 changes
    > specifically affecting file/disk access, MySQL
    > interaction, and execution speed.

    I don't really know about disk access, but in terms of speed there are many improvements compared to perl 5. The two perhaps most important things are:
    1) Static types allow better optimiztions
    2) Overloading is gone (and replaced by multi method dispatch), and overloading was one of the perl 5 features that prevented many optimizations.

    There's no mysql specific features in Perl 6, but the new object model (about which I wrote about today, and which has many more features than I could show) will certainly help to build an easier, cleaner interface.

  5. Jay Gadget says:

    found your page and thought it was about beer… now i'm a little bit disappointed ;)

  6. Golfspiel says:

    Hehe i like you beerpla.net. Sounds like Bierplanet. Still funny.

  7. Jhuni says:

    Ya I was really like my god how do they expect me to use ~ for concatenation I cannot type that character that quickly! Well I only use that for appending to a string:

    my Str $str;
    $str ~= 'asdf';

    For concatenating several strings though fortunately there is the join method:

    ["Hello", " ", "World"].join.say;

  8. femi fagbemi taiwo says:

    this perl 6 of a thing is gonna be a complicating idea cos i already can see myself disliking perl cos of this perl 6 thing

  9. 1 Ping:
  10. [...] default parameters, similar to PHP. Perl 5 doesn’t have such construct, it’s only introduced in Perl 6. For example 1 def do_search(string, start = [...]

Leave a Reply