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.
[reply]
In Section
Seekers of Perl Wisdom