Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Counting positive numbers

by moritz (Cardinal)
on Jun 29, 2010 at 13:06 UTC ( #847119=note: print w/replies, xml ) Need Help??


in reply to Counting positive numbers

Perl 6 solution, with latest Rakudo (ie built today):
# 12345678901234567890123456 perl6 -e 'get;say [+]lines.grep: *>0'

26 character if you don't count the quotes.

Perl 6 - links to (nearly) everything that is Perl 6.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2016-09-26 21:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (491 votes). Check out past polls.