Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 pondering the Monastery: (7)
As of 2016-07-25 20:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (227 votes). Check out past polls.