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

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

by choroba (Cardinal)
on May 15, 2014 at 08:41 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (None)
    As of 2024-04-25 03:56 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found