Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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 having a coffee break in the Monastery: (2)
As of 2024-06-24 18:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.