Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: how to select which words have Y and W

by Laurent_R (Prior)
on Dec 26, 2013 at 12:12 UTC ( #1068424=note: print w/ replies, xml ) Need Help??


in reply to Re: how to select which words have Y and W
in thread how to select which words have Y and W

Try this:

$ perl -e '@positive_int = grep {$_ >=0 } (12,-85,36,-10,75,-38); pri +nt "@positive_int"' 12 36 75


Comment on Re^2: how to select which words have Y and W
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2015-07-01 22:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (24 votes), past polls