in reply to Re^2: How can increase number sequence in a variable
in thread How can increase number sequence in a variable
Hi kgb, I'm not certain what you are intending to show there.
As I understood it the OP wanted to keep the arrays separated in the loop. And if they are to be contatenated with join, you don't need map.
perl -Mstrict -E 'my @x=(1..2); my @y=(3..4); say join "->", (@x,@y)' 1->2->3->4
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How can increase number sequence in a variable
by karlgoethebier (Abbot) on Nov 18, 2017 at 10:37 UTC |