Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Perl 6 implementation of the following Perl 5 code

by moritz (Cardinal)
on May 27, 2013 at 11:13 UTC ( #1035391=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use v6;
    print join ' ', reverse .words for
    ...
             .map({ [+<<.words[*-1, 0], $_]})\
             .sort\
             .map(*[2])
    
  2. or download this
    use v6;
    
    ...
    ==> my @lines;
    
    print ~.words.reverse for @lines;
    
  3. or download this
    class Line {
        has $.str handles 'words';
    ...
    
    
    print lines().map({Line.new(str => $_)}).grep(/SRC1/).sort;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1035391]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2014-08-22 20:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (165 votes), past polls