Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^3: Concise foreach expressionby LanX (Saint) |
on Aug 29, 2014 at 17:00 UTC ( [id://1099018]=note: print w/replies, xml ) | Need Help?? |
> Could you explain what you mean there? I was talking about chaining maps or fors to simulate nested foreach loops. I.o.w. list comprehensions are very hard to implement in Perl without nested blocks. e.g. try to implement this Python example for "Pythagorean triples" w/o nesting
Cheers Rolf (addicted to the Perl Programming Language and ☆☆☆☆ :)
In Section
Seekers of Perl Wisdom
|
|