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

Re: conditional statement works one way, but not the other

by choroba (Cardinal)
on May 15, 2014 at 08:41 UTC ( #1086116=note: print w/replies, xml ) Need Help??


in reply to conditional statement works one way, but not the other (Updated)

You can't use for/foreach in an expression. You can replace it with map easily, though.
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
  • Comment on Re: conditional statement works one way, but not the other

Replies are listed 'Best First'.
Re^2: conditional statement works one way, but not the other
by igoryonya (Pilgrim) on May 16, 2014 at 00:54 UTC
    Thanx for the tip, I didn't know or didn't remember that I couldn't use for/foreach in an expression.
    I will consider mapping it.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2023-03-21 05:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (59 votes). Check out past polls.

    Notices?