Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: A matter of style: how to perform a simple action based on a simple condition?

by james2vegas (Chaplain)
on Sep 26, 2010 at 23:38 UTC ( #862135=note: print w/replies, xml ) Need Help??


in reply to Re: A matter of style: how to perform a simple action based on a simple condition?
in thread A matter of style: how to perform a simple action based on a simple condition?

foreach (@ray1) { push @ray2,$_ if ($_<0) }
doesn't seem to be the best example to use since it is probably better expressed with a map like
push @ray2, grep { $_ < 0 } @ray1

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://862135]
help
Chatterbox?
[Corion]: Hi marto ;)
[Discipulus]: Corion ah! you opened a new search path! thanks
[choroba]: LanX No, but they grow and want more!
LanX was conditioned by a female
Discipulus my 'kids' always complain with our car..
[LanX]: true, cars are bad in growing
[marto]: WaitWindow()
[Corion]: Discipulus: You need to respond with 0 to WM_QUERYENDSESSION

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2017-01-17 09:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (154 votes). Check out past polls.